# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148445 | 1 WA = 5 Push Up (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 6 ms | 512 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"
std::vector<int> PickUnique(int N) {
std::vector<int> ret(N,1);
for(int i = 0; i < N; i++){
if(i != 0){
int v1 = UniqueCount(0, i);
int v2 = UniqueCount(0, i-1);
if(v1 != v2+1) ret[i] = 0;
}
if(i != N-1){
int v1 = UniqueCount(i, N-1);
int v2 = UniqueCount(i+1, N-1);
if(v1 != v2+1) ret[i] = 0;
}
}
return ret;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |