#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
void solve(int n)
{
for(int i = 0; i < 60; ++i){
int x = rand() % n + 1;
int val = kth(x);
if(cnt(val) > (n / 3)){
say_answer(val);
return;
}
}
say_answer(-1);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
16 ms |
208 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
34 ms |
208 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
31 ms |
208 KB |
Output is partially correct |
2 |
Partially correct |
23 ms |
208 KB |
Output is partially correct |
3 |
Correct |
4 ms |
208 KB |
Output is correct |
4 |
Correct |
5 ms |
228 KB |
Output is correct |
5 |
Partially correct |
30 ms |
208 KB |
Output is partially correct |
6 |
Partially correct |
53 ms |
220 KB |
Output is partially correct |
7 |
Partially correct |
48 ms |
208 KB |
Output is partially correct |
8 |
Partially correct |
42 ms |
208 KB |
Output is partially correct |
9 |
Partially correct |
38 ms |
208 KB |
Output is partially correct |
10 |
Partially correct |
45 ms |
208 KB |
Output is partially correct |
11 |
Partially correct |
61 ms |
208 KB |
Output is partially correct |
12 |
Partially correct |
37 ms |
208 KB |
Output is partially correct |
13 |
Partially correct |
35 ms |
208 KB |
Output is partially correct |
14 |
Partially correct |
51 ms |
208 KB |
Output is partially correct |