# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
777140 | 2023-07-08T17:43:36 Z | LeaRouse | CONSUL (info1cup19_consul) | C++14 | 0 ms | 0 KB |
#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 say_answer(int n){ for(int i=0;i<n;i++){ m[kth(i+1)]++; } for(auto it:m){ if(it.second>n/3){ cout<<it.first<<endl; return; } } cout<<-1<<endl; }