Submission #148426

# Submission time Handle Problem Language Result Execution time Memory
148426 2019-09-01T04:21:50 Z 还没编好(#3801, cauchysheep, fjzzq2002, apiad) List of Unique Integers (FXCUP4_unique) C++17
0 / 100
5 ms 256 KB
#include "unique.h"
using namespace std;
vector<int> PickUnique(int N) {
	vector<int> g(N,1);
	int l=0;
	for(int r=0;r<N;++r)
	{
		while(UniqueCount(l,r)!=r-l+1)
			g[l++]=g[r]=0;
	}
	return g;
}
#ifdef LOCAL
#include "grader.cpp"
#endif
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Correct : C = 3
2 Incorrect 5 ms 256 KB Wrong
3 Halted 0 ms 0 KB -