Submission #315011

#TimeUsernameProblemLanguageResultExecution timeMemory
315011daniel920712CONSUL (info1cup19_consul)C++14
19 / 100
824 ms2080 KiB
#include "grader.h" #include <map> using namespace std; map < int , int > all; void solve(int n) { int i,t; for(i=1;i<=n;i++) { t=kth(i); all[t]++; if(all[t]>n/3) { say_answer(t); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...