#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 time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Correct : C = 4 |
2 |
Correct |
1 ms |
212 KB |
Correct : C = 10 |
3 |
Correct |
1 ms |
212 KB |
Correct : C = 50 |
4 |
Correct |
1 ms |
340 KB |
Correct : C = 100 |
5 |
Correct |
1 ms |
212 KB |
Correct : C = 100 |
6 |
Correct |
1 ms |
340 KB |
Correct : C = 154 |
7 |
Correct |
1 ms |
340 KB |
Correct : C = 200 |
8 |
Correct |
1 ms |
340 KB |
Correct : C = 300 |
9 |
Correct |
1 ms |
424 KB |
Correct : C = 356 |
10 |
Correct |
1 ms |
468 KB |
Correct : C = 400 |
11 |
Correct |
1 ms |
468 KB |
Correct : C = 400 |
12 |
Correct |
1 ms |
468 KB |
Correct : C = 400 |
13 |
Correct |
1 ms |
428 KB |
Correct : C = 400 |
14 |
Correct |
1 ms |
468 KB |
Correct : C = 400 |
15 |
Correct |
1 ms |
424 KB |
Correct : C = 400 |