#include<bits/stdc++.h>
#include "grader.h"
#define fastio ios_base::sync_with_stdio(0); cin.tie(0);
#define ll long long
using namespace std;
map<ll,int>m;
void solve(int n){
for(int i=0;i<n;i++){
int a=kth(i+1);
m[a]++;
}
for(auto it:m){
if(it.second>n/3){
say_answer(it.first);
return;
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
208 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
19 ms |
328 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |