Submission #764174

#TimeUsernameProblemLanguageResultExecution timeMemory
764174idkhandleList of Unique Integers (FXCUP4_unique)C++17
100 / 100
1 ms468 KiB
#include "unique.h" using namespace std; std::vector<int> PickUnique(int N) { vector<int>A(N+2),B(N+2),C(N); for(int i=1;i<=N;++i)A[i]=UniqueCount(0,i-1); for(int i=1;i<=N;++i)B[i]=UniqueCount(i-1,N-1); for(int i=1;i<=N;++i){ C[i-1]=A[i]>A[i-1]&&B[i]>B[i+1]; } return C; }
#Verdict Execution timeMemoryGrader output
Fetching results...