Submission #524266

#TimeUsernameProblemLanguageResultExecution timeMemory
524266maks007CONSUL (info1cup19_consul)C++14
0 / 100
18 ms200 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); } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...