Submission #523460

#TimeUsernameProblemLanguageResultExecution timeMemory
523460Farhan_HYCONSUL (info1cup19_consul)C++14
15 / 100
15 ms280 KiB
#include<bits/stdc++.h> #include "grader.h" using namespace std; map<int, bool> mp; void solve(int n) { mp.clear(); srand(0); int q = 30; int i = 0; while(q--) { i++; if (i > n) break; int x = kth(i); if(mp[x]) continue; mp[x] = 1; int Count = cnt(x); if (Count > n / 3) { say_answer(x); return; } } say_answer(-1); /// insert your code }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...