Submission #525043

#TimeUsernameProblemLanguageResultExecution timeMemory
525043Ronin13CONSUL (info1cup19_consul)C++14
100 / 100
24 ms200 KiB
#include "grader.h" #include<bits/stdc++.h> #define ll long long #define ull unsigned ll #define pll pair<ll,ll> #define pii pair<int,int> #define f first #define s second #define pb push_back #define epb emplace_back #define inf 1e9+1 #define linf 1e18+1 using namespace std; void solve(int n) { srand(time(NULL)); for(int j=0;j<25;j++){ int x=rand()%n+1; int f=kth(x); int v=cnt(f); if(v>n/3){say_answer(f);return;} } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...