Submission #693116

#TimeUsernameProblemLanguageResultExecution timeMemory
693116auslanderCONSUL (info1cup19_consul)C++17
0 / 100
30 ms296 KiB
#include "grader.h" #include <map> using namespace std; map<int, int>mp; void solve(int n) { int i; int k = 60; if (n <= 50) k = 50; for (i = 1; i <= k; i++) { int k = kth(i); if (mp[k] == 0) mp[k] = cnt(k); if (mp[k] > n / 3) { say_answer(k); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...