Submission #369491

#TimeUsernameProblemLanguageResultExecution timeMemory
369491sadCONSUL (info1cup19_consul)C++14
35 / 100
21 ms364 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<=20;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...