#include "unique.h"
#include <bits/stdc++.h>
using namespace std;
int get(int l,int r)
{
if (r<l)
return 0;
return UniqueCount(l,r);
}
vector<int> PickUnique(int n)
{
vector<int> ans(n);
for (int i=0;i<n;i++)
ans[i]=(get(0,i)-get(0,i-1)>0 && get(i,n-1)-get(i+1,n-1)>0);
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
256 KB |
Correct : C = 5 |
2 |
Correct |
5 ms |
384 KB |
Correct : C = 15 |
3 |
Correct |
6 ms |
384 KB |
Correct : C = 77 |
4 |
Correct |
6 ms |
384 KB |
Correct : C = 168 |
5 |
Correct |
6 ms |
384 KB |
Correct : C = 167 |
6 |
Correct |
6 ms |
384 KB |
Correct : C = 242 |
7 |
Correct |
6 ms |
384 KB |
Correct : C = 323 |
8 |
Partially correct |
6 ms |
384 KB |
Partially correct : C = 496 |
9 |
Partially correct |
5 ms |
512 KB |
Partially correct : C = 571 |
10 |
Partially correct |
6 ms |
512 KB |
Partially correct : C = 651 |
11 |
Partially correct |
6 ms |
512 KB |
Partially correct : C = 659 |
12 |
Partially correct |
6 ms |
512 KB |
Partially correct : C = 643 |
13 |
Partially correct |
6 ms |
512 KB |
Partially correct : C = 652 |
14 |
Partially correct |
6 ms |
512 KB |
Partially correct : C = 401 |
15 |
Partially correct |
7 ms |
512 KB |
Partially correct : C = 798 |