Submission #206707

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