# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
150194 | Outfraware Boat People (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 5 ms | 256 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"
#include <vector>
std::vector<int> PickUnique(int N) {
std::vector<int> arr(N);
int uCount = 0;
//UniqueCount(0, N - 1);
//uCount = UniqueCount(1, N-2);
for(int i=0; i<4000; i++) {
int cand = N - (i + 1);
uCount = UniqueCount(i, cand);
arr[i] = arr[cand] = 0;
if (uCount == cand) {
for (int j = i + 1; j < cand; j++) {
arr[j] = 1;
}
break;
}
}
return arr;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |