Submission #401674

#TimeUsernameProblemLanguageResultExecution timeMemory
401674phathnvHotter Colder (IOI10_hottercolder)C++11
0 / 100
700 ms138428 KiB
#include<bits/stdc++.h> #include"grader.h" using namespace std; int HC(int n){ if (n == 1) return 1; int l = 1, r = n, type = 0; Guess(l); while (true){ int mid = (l + r) / 2; if (!type){ int x = Guess(mid); if (x == 0) return (l + r) / 2; if (x == 1){ l = mid; type = 0; } else { r = mid; type = 1; } } else { int x = Guess(mid); if (x == 0) return (l + r) / 2; if (x == 1){ r = mid; type = 1; } else { l = mid; type = 0; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...