Submission #1082555

#TimeUsernameProblemLanguageResultExecution timeMemory
1082555aaaaaarrozHotter Colder (IOI10_hottercolder)C++17
0 / 100
486 ms100352 KiB
#include "grader.h" int HC(int N){ int l=1,r=N; int pivot=1; while(l<r){ Guess(pivot); int res=Guess((l+r)/2); if(res==0){ return (pivot+((l+r-1)/2))/2; } else if(res==-1){ r=((l+r-1)/2); r--; } else if(res==1){ l=((l-1+r)/2); l++; } } return (pivot+((l+r-1)/2)/2); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...