제출 #201746

#제출 시각아이디문제언어결과실행 시간메모리
201746Leonardo_PaesHotter Colder (IOI10_hottercolder)C++17
77 / 100
731 ms8280 KiB
#include "grader.h" int HC(int n){ int ini = 1, fim = n , meio, ans = -1; while(ini<=fim){ meio = (ini + fim) >> 1; if(ini == fim){ ans = meio; break; } Guess(ini); int a = Guess(fim); if(a == 0){ ans = meio; break; } else if(a == 1){ ini = meio + 1; } else{ fim = meio - 1 + (fim - ini)%2; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...