# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
257461 | dolphingarlic | Guess the number (BOI20_guess) | Cpython 3 | 36 ms | 3436 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |