#include "grader.h"
#include <map>
#define ll long long
using namespace std;
void solve(int n){
for(int i=1;i<25;i++){
int nc=kth(i%n +1);
int awa=cnt(nc);
if(awa>n/3){
say_answer(nc);
return;
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
8 ms |
208 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
17 ms |
208 KB |
Output is correct |
2 |
Incorrect |
1 ms |
208 KB |
Wrong answer |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
19 ms |
208 KB |
Output is correct |
2 |
Correct |
16 ms |
208 KB |
Output is correct |
3 |
Incorrect |
1 ms |
208 KB |
Wrong answer |
4 |
Halted |
0 ms |
0 KB |
- |