#include "grader.h"
//#include "grader.cpp"
bool vis[1000000005];
void solve(int n){
for(int i = 1 ; i <= n ; i ++){
int x = kth(i);
if(!vis[x]){
int y = cnt(x);
if(y > n / 3){
say_answer(x);
break;
}
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
26 ms |
1388 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
2028 KB |
Output is correct |
2 |
Incorrect |
34 ms |
924 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
11 ms |
492 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |