Submission #315086

#TimeUsernameProblemLanguageResultExecution timeMemory
315086yjojdkgk5bpCONSUL (info1cup19_consul)C++14
0 / 100
8 ms256 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/3+2; 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...