Submission #525714

# Submission time Handle Problem Language Result Execution time Memory
525714 2022-02-12T16:00:10 Z fuad27 CONSUL (info1cup19_consul) C++17
0 / 100
2 ms 200 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
void solve(int n) {
	srand(time(NULL));
	int limit = 0;
	if(n <= 50)limit = 25;
	else limit=30;
	for(int k = 0;k<limit;k++) {
		int i = rand()%n + 1;
		long long num = kth(i);
		if(cnt(num) > (n+2)/ 3){
			say_answer(num);
			return;
		}
	}
	say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 200 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 200 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 200 KB Wrong answer
2 Halted 0 ms 0 KB -