# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
764174 | idkhandle | List of Unique Integers (FXCUP4_unique) | C++17 | 1 ms | 468 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 "unique.h"
using namespace std;
std::vector<int> PickUnique(int N) {
vector<int>A(N+2),B(N+2),C(N);
for(int i=1;i<=N;++i)A[i]=UniqueCount(0,i-1);
for(int i=1;i<=N;++i)B[i]=UniqueCount(i-1,N-1);
for(int i=1;i<=N;++i){
C[i-1]=A[i]>A[i-1]&&B[i]>B[i+1];
}
return C;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |