Submission #523110

# Submission time Handle Problem Language Result Execution time Memory
523110 2022-02-07T05:48:14 Z Baytoro CONSUL (info1cup19_consul) C++17
100 / 100
30 ms 288 KB
#include <bits/stdc++.h>
#include "grader.h"
//#include "grader.cpp"
using namespace std;
void solve(int n)
{
	int q=30;
	if(n<=50)
		q=25;
    while(q--){
    	int x=rand()%n+1;
    	x=kth(x);
    	if(cnt(x)>n/3){
    		say_answer(x);
    		return;
    	}
	}
	say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Correct 9 ms 200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 268 KB Output is correct
2 Correct 7 ms 200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 200 KB Output is correct
2 Correct 18 ms 280 KB Output is correct
3 Correct 7 ms 284 KB Output is correct
4 Correct 8 ms 264 KB Output is correct
5 Correct 23 ms 280 KB Output is correct
6 Correct 25 ms 200 KB Output is correct
7 Correct 16 ms 200 KB Output is correct
8 Correct 28 ms 284 KB Output is correct
9 Correct 25 ms 200 KB Output is correct
10 Correct 19 ms 288 KB Output is correct
11 Correct 23 ms 200 KB Output is correct
12 Correct 22 ms 200 KB Output is correct
13 Correct 27 ms 284 KB Output is correct
14 Correct 30 ms 264 KB Output is correct