#include <bits/stdc++.h>
#include "grader.h"
//#include "grader.cpp"
using namespace std;
void solve(int n){
int a[1005];
for(int i = 0 ; i < n / 3 ; i ++){
int x = kth(i + 1);
a[i] = x;
}
sort(a,a + n);
//int cnt = 1;
for(int i = 0 ; i < n / 3 ; i ++){
int x = cnt(a[i]);
if(x > n / 3){
say_answer(x);
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
Wrong answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
Wrong answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
364 KB |
Wrong query format |
2 |
Halted |
0 ms |
0 KB |
- |