Submission #694127

#TimeUsernameProblemLanguageResultExecution timeMemory
694127Ahmed_SolymanCONSUL (info1cup19_consul)C++14
100 / 100
27 ms208 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(2006); for(int i=0;i<25;i++){ int x=kth(rand()%n+1); int g=cnt(x); if(g>n/3){ say_answer(x); return; } } say_answer(-1); return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...