Submission #474388

#TimeUsernameProblemLanguageResultExecution timeMemory
474388hhhhauraCONSUL (info1cup19_consul)C++14
100 / 100
29 ms232 KiB
#include "grader.h" #define wiwihorz #include <bits/stdc++.h> #define rep(i, a, b) for(int i = a; i <= b; i ++) using namespace std; void solve(int n) { set<int> s; rep(i, 1, 25) { int k; while(k = rand() % n + 1, s.find(k) != s.end()); s.insert(k); k = kth(k); if(cnt(k) > n / 3) { say_answer(k); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...