# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
111747 | 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 chk[222];
int uc(int l, int r){
if(l>r) return 0;
return UniqueCount(l, r);
}
void PickUnique(int N) {
for(int i=1; i<=N; i++){
if(uc(1, i)==uc(1, i-1)+1 && uc(i, N)==uc(i+1, N)+1) chk[i]=1;
}
for(int i=1; i<=N; i++) if(chk[i]) Report(i);
}