Submission #1082562

#TimeUsernameProblemLanguageResultExecution timeMemory
1082562aaaaaarrozHotter Colder (IOI10_hottercolder)C++17
0 / 100
430 ms73044 KiB
#include "grader.h" int HC(int N){ int l=1,r=N; int pivot=1; while(l<r){ Guess(pivot); int mid=(l+r)/2; int res=Guess(mid); if(res==0){ return (pivot+mid)/2; } else if(res==-1){ r=mid-1; } else if(res==1){ l=mid+1; } } return ((pivot+r)/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...