# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148460 | 还没编好 (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 6 ms | 560 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "unique.h"
using namespace std;
vector<int> PickUnique(int N) {
vector<int> b(N,1);
int p=0;
for(int r=0;r<N;++r)
{
int g=UniqueCount(0,r);
if(g<=p) b[r]=0; p=g;
}
p=0;
for(int r=N-1;r>=0;--r)
{
int g=UniqueCount(r,N-1);
if(g<=p) b[r]=0; p=g;
}
return b;
}
#ifdef LOCAL
#include "grader.cpp"
#endif
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |