# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148573 | JeffreyHo (#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"
#include <vector>
std::vector<int> PickUnique(int N) {
int a[328] = {}, b[328] = {};
std::vector<int> c(N);
for (int i = 0; i < N; i++) a[i] = UniqueCount(0, i);
for (int i = 0; i < N; i++) b[i] = UniqueCount(i, N - 1);
for (int i = 0; i < N; i++) if ((!i || a[i] == a[i - 1] + 1) && (i == N - 1 || b[i] == b[i + 1] + 1)) c[i] = 1;
return c;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |