# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
150827 | 2019-09-01T08:58:07 Z | Outfraware Boat People(#3577, c4big, bsyo2k, cepiloth) | List of Unique Integers (FXCUP4_unique) | C++17 | 5 ms | 256 KB |
#include "unique.h" #include <vector> std::vector<int> PickUnique(int N) { std::vector<int> arr(N); for (int i = 0; i < N; i++) { arr[i] = 1; } 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); if (uCount == cand) { arr[i] = arr[cand] = 0; break; } arr[i] = arr[cand] = 0; } return arr; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | Wrong |
2 | Halted | 0 ms | 0 KB | - |