Submission #694117

# Submission time Handle Problem Language Result Execution time Memory
694117 2023-02-03T20:59:15 Z Ahmed_Solyman CONSUL (info1cup19_consul) C++14
0 / 100
1 ms 296 KB
#include <bits/stdc++.h>
using namespace std;
int kth(int i);
int cnt(int x);
void say_answer(int a);
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void solve(int n){
	for(int i=0;i<50;i++){
		int x=kth(rng()%n);
		int g=cnt(x);
		if(g>n/3){
			say_answer(x);
			return;
		}
	}
	say_answer(-1);
	return;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 208 KB Wrong query format
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 208 KB Wrong query format
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 296 KB Wrong query format
2 Halted 0 ms 0 KB -