# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
521248 | penguin133 | List of Unique Integers (FXCUP4_unique) | C++17 | 1 ms | 204 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 <bits/stdc++.h>
using namespace std;
vector<int> PickUnique(int N) {
vector<int>v;
int L[201], R[202];
L[0] = 0, R[201] = 0;
for(int i=0;i<N;i++){
L[i+1] = UniqueCount(0, i);
R[i+1] = UniqueCount(i+1, N-1);
}
int cnt = 0, cnt2 = R[200];
for(int i=1;i<=N;i++){
if(L[i] > L[i-1] && R[i] > R[i+1])v.push_back(1);
else v.push_back(0);
cnt = L[i];
cnt2 = R[i];
}
return v;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |