Submission #360855

#TimeUsernameProblemLanguageResultExecution timeMemory
360855ezdpCONSUL (info1cup19_consul)C++14
85 / 100
28 ms364 KiB
#include "grader.h" #include<bits/stdc++.h> #define ll long long using namespace std; void solve(int n) { set<ll> s; srand(69696969); while(s.size() < 29){ int i = rand() % n + 1; if(!s.count(i)){ s.insert(i); ll val = kth(i); if(cnt(val) > n / 3){ say_answer(val); return; } } } say_answer(cnt(kth(1)) > n / 3 ? kth(1) : -1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...