Submission #369485

#TimeUsernameProblemLanguageResultExecution timeMemory
369485sadCONSUL (info1cup19_consul)C++14
100 / 100
29 ms384 KiB
#include "grader.h" #include "bits/stdc++.h" #define fi first #define se second #define pb push_back #define ll long long using namespace std; map<int,int>m; void solve(int n) { for(int i=1;i<=25;i++) { int w=rand(); w%=n;w++; int x=kth(w); int y=cnt(x); if(y>n/3) { say_answer(x);return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...