Submission #570738

#TimeUsernameProblemLanguageResultExecution timeMemory
570738zaneyuCONSUL (info1cup19_consul)C++14
100 / 100
32 ms208 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; mt19937 rng(69); void solve(int n) { /// insert your code /// for example int mx=30; if(n<=100) mx=25; for(int i=0;i<mx;i++){ int z=rng()%n+1; int x=kth(z); if(cnt(x)>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...