Submission #315073

#TimeUsernameProblemLanguageResultExecution timeMemory
315073yjojdkgk5bpCONSUL (info1cup19_consul)C++14
19 / 100
821 ms384 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { int v; map<int,int> can; for(int i=1; i<=n; i++) { v=kth(i); can[v]++; if(can[v]>n/3) { say_answer(v); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...