#include "grader.h"
#include <map>
using namespace std;
map<int, int>mp;
void solve(int n)
{
int i;
int k = 60;
if (n <= 50)
k = 50;
for (i = 1; i <= k; i++)
{
int k = kth(i);
if (mp[k] == 0)
mp[k] = cnt(k);
if (mp[k] > n / 3)
{
say_answer(k);
return;
}
}
say_answer(-1);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Wrong query format |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
22 ms |
296 KB |
Output is partially correct |
2 |
Incorrect |
6 ms |
208 KB |
Wrong answer |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
22 ms |
280 KB |
Output is partially correct |
2 |
Partially correct |
30 ms |
272 KB |
Output is partially correct |
3 |
Incorrect |
1 ms |
272 KB |
Wrong answer |
4 |
Halted |
0 ms |
0 KB |
- |