# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148483 | 욱방켜!! (twitch.tv/wookje) (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 9 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[200], R[200];
std::vector<int> PickUnique(int N) {
std::vector<int> ret(N,1);
L[0]=R[N-1]=1;
for(int i=1;i<N;i++) L[i]=UniqueCount(0,i);
for(int i=N-2;i>=0;i--) R[i]=UniqueCount(i,N-1);
for(int i=1;i<N;i++) if(L[i-1]>=L[i]) ret[i]=0;
for(int i=N-2;i>=0;i--) if(R[i]<=R[i+1]) ret[i]=0;
return ret;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |