Submission #754525

#TimeUsernameProblemLanguageResultExecution timeMemory
754525ValiAntonieHotter Colder (IOI10_hottercolder)C++14
0 / 100
612 ms86260 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; int Guess (int x); int HC(int N){ int st=1,dr=N; Guess(st); int a = Guess(dr); while(st!=dr){ int mij = (st+ dr) >> 1; if(a==-1){ dr= mij; Guess(st); a = Guess(dr); if(a == 0) return mij; } else if(a==1){//close to l st = mij + 1; Guess(st); a = Guess(dr); if(a == 0) return mij; } else return mij; } return st; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...