#include <bits/stdc++.h>
#include "grader.h"
void solve(int n) {
int tmp, cnnt = 0;
srand(time(NULL));
while (cnnt < 30) {
tmp = kth(rand()%n+1);
if (cnt(tmp) > n/3) {
say_answer(tmp);
return;
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
208 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
208 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
208 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |