#include "grader.h"
#include <map>
using namespace std;
map < int , int > all;
void solve(int n)
{
int i,t;
for(i=1;i<=n;i++)
{
t=kth(i);
all[t]++;
if(all[t]>n/3) say_answer(t);
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Multiple answers provided for the same testcase! |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
16 ms |
376 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |