Submission #524267

#TimeUsernameProblemLanguageResultExecution timeMemory
524267maks007CONSUL (info1cup19_consul)C++14
19 / 100
738 ms292 KiB
#include <bits/stdc++.h> #include <map> #include "grader.h" using namespace std; void solve(int n) { map <int,int> mp; for(int i = 0; i < n; i ++) { int k = kth(i+1); mp[k] ++; if(mp[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...