Submission #777146

#TimeUsernameProblemLanguageResultExecution timeMemory
777146LeaRouseCONSUL (info1cup19_consul)C++14
0 / 100
16 ms300 KiB
#include<bits/stdc++.h> #include <grader.h> #define fastio ios_base::sync_with_stdio(0); cin.tie(0); #define ll long long using namespace std; map<int,int>m; void solve(int n){ for(int i=0;i<n;i++){ m[kth(i+1)]++; } for(auto it:m){ if(it.second>n/3){ say_answer(it.first); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...