Submission #861251

#TimeUsernameProblemLanguageResultExecution timeMemory
861251Ahmed57CONSUL (info1cup19_consul)C++17
100 / 100
10 ms596 KiB
#include <bits/stdc++.h> using namespace std; int kth(int i); int cnt(int x); void say_answer(int a); void solve(int N){ srand(244); for(int i = 1;i<=min(N/2,30);i++){ int w = kth(rand()%N+1); int x = cnt(w); if(x>N/3){ say_answer(w); return ; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...