Submission #257461

#TimeUsernameProblemLanguageResultExecution timeMemory
257461dolphingarlicGuess the number (BOI20_guess)Cpython 3
100 / 100
36 ms3436 KiB
l, r = 1, int(input()) while 1: m = (l + r) // 2 print(f'? {m}') a = int(input()) if a < 0: l = m + 1 if a > 0: r = m - 1 if a == 0: print(f'= {m}') break
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...