Submission #387136

#TimeUsernameProblemLanguageResultExecution timeMemory
387136lakshith_Hotter Colder (IOI10_hottercolder)C++14
50 / 100
695 ms17996 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; int HC(int N){ int l=1,r=N; while(l!=r){ Guess(l); int a = Guess(r); if(a==-1)//close to r r = (l+r-1)/2; else if(a==1)//close to l l = (l+r+1)/2; else return (l+r)/2; } 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...