Submission #777163

#TimeUsernameProblemLanguageResultExecution timeMemory
777163LeaRouseCONSUL (info1cup19_consul)C++14
19 / 100
679 ms208 KiB
#include "grader.h" #include <map> #define ll long long using namespace std; map<ll,int>m; void solve(int n){ for(int i=1;i<=n;i++){ int a=kth(i); m[a]++; } for(auto it:m){ if(it.second>(n/3)){ m.clear(); say_answer(it.first); return; } } m.clear(); say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...