# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
111745 | imsifile | List of Unique Integers (FXCUP4_unique) | C++17 | 0 ms | 0 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 pre[222], suf[222];
void PickUnique(int N) {
for(int i=1; i<=N; i++){
pre[i]=UniqueCount(1, i);
suf[i]=UniqueCount(i, N);
}
for(int i=1; i<=N; i++){
if(pre[i]==pre[i-1]+1 && suf[i]==suf[i+1]+1) Report(i);
}
}