#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
void solve(int n)
{
int v;
map<int,int> can;
for(int i=1; i<=(n/3)*2+3; i++)
{
v=kth(i);
can[v]++;
if(can[v]>n/3)
{
say_answer(v); return;
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Wrong answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
376 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |