# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148512 | Powered By Zigui (#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"
int l[202], r[202];
std::vector<int> ans;
std::vector<int> PickUnique(int N) {
int x = UniqueCount(0, N-1);
for(int i=0;i<N;i++)
{
if(i == 0) l[1] = 1;
else l[i+1] = UniqueCount(0, i);
if(i == 0) r[N] = 1;
else r[N-i] = UniqueCount(N-i-1, N-1);
}
ans.resize(N);
for(int i=0;i<N;i++)
{
ans[i] = (l[i] < l[i+1] && r[i+1] > r[i+2]);
}
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |