Submission #1008947

#TimeUsernameProblemLanguageResultExecution timeMemory
1008947ALTAKEXEHotter Colder (IOI10_hottercolder)C++17
25 / 100
405 ms24396 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; int st, en; int ask(int l, int r) { return Guess((l + r) / 2); } int HC(int n) { st = 1, en = n + 1; ask(st, n); while (st + 1 < en) { int mid = (st + en) / 2; if (ask(st, mid) == 1) en = mid; else { if (ask(mid, en) != -1) st = mid; else { ask(st, en); en = mid; } } } return st; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...