#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);
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
208 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
292 KB |
Too many queries |
2 |
Halted |
0 ms |
0 KB |
- |