#include "grader.h"
using namespace std;
void solve(int n)
{
for(int i=0;i<n;i++){
int x=kth(i+1);
int y=cnt(x);
if(y>n/3){
say_answer(x);
return;
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
16 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
39 ms |
264 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
200 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |