#include "grader.h"
#include <map>
using namespace std;
map<int, int>mp;
void solve(int n)
{
int i;
for (i = 1; i <= n; i++)
{
int k = kth(i);
mp[k]++;
if (mp[k] > n / 3)
{
say_answer(k);
return;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
16 ms |
284 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
83 ms |
328 KB |
Output is partially correct |
2 |
Partially correct |
54 ms |
288 KB |
Output is partially correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
749 ms |
1816 KB |
Output is partially correct |
2 |
Halted |
0 ms |
0 KB |
- |