Submission #369475

#TimeUsernameProblemLanguageResultExecution timeMemory
369475sadCONSUL (info1cup19_consul)C++14
0 / 100
1 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<=25;i++) { int w=rand(); w%=n;w++; int x=kth(i); m[x]++; } for(auto it:m)if(it.se>n/3){say_answer(it.fi);return;} say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...