Submission #222992

#TimeUsernameProblemLanguageResultExecution timeMemory
222992abra_stoneHotter Colder (IOI10_hottercolder)C++14
77 / 100
665 ms12372 KiB
#include "grader.h" int HC(int N){ int l = 1, r = N, m1, m2, t; while (l < r) { m1 = (l + r) / 2; m2 = m1 + 1; if ((l - r) % 2 == 0) m1--; Guess(m1); t = Guess(m2); if (t == 0) return m1 + 1; else if (t == 1) l = m2; else r = m1; } return l; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...