Submission #119508

#TimeUsernameProblemLanguageResultExecution timeMemory
119508PlurmHotter Colder (IOI10_hottercolder)C++11
25 / 100
751 ms8280 KiB
#include "grader.h" #include <cstdio> int HC(int N){ int lo = 1; int hi = N; while(lo+1 < hi){ Guess(lo); int mid = (lo + hi)/2; int r = Guess(mid); if(r > 0){ int rr = Guess(hi); if(rr > 0){ lo = (mid + hi)/2 + 1; }else{ lo = (lo + mid)/2 + 1; hi = (mid + hi)/2; } }else{ hi = (lo + mid)/2; } } if(lo == hi) return lo; Guess(lo); if(Guess(hi) == 1) return hi; else return lo; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...