CTU Open Contest 2017 Dark Ride with Monsters
给你一串数列,你将它排成升序,只能两两交换,
方法,每次讲位置指向一个数,直至找到该位置应该存在的数,然后将找过的数归位,就可以了
#include <iostream>
#include <stdio.h>
#include <cstdlib>
using namespace std;
const int maxn=200000+9;
int num[...
原创
2018-08-21 19:05:55 ·
298 阅读 ·
0 评论