Submission #419534

#TimeUsernameProblemLanguageResultExecution timeMemory
419534schseThe Big Prize (IOI17_prize)C++17
20 / 100
3 ms284 KiB
#include "prize.h" #ifndef EVAL #include "grader.cpp" #endif #include <bits/stdc++.h> using namespace std; int find_best(int n) { int b = 0, e = n; while (e - b != 1) { auto v = ask((e + b) / 2); if (v[0]) e = (e + b) / 2; else b = (b + e) / 2; } return b; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...