Re: [gcj] python interactive solution

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Also, there's solutions in every language here in the analysis: https://codejam.withgoogle.com/2018/challenges/0130/analysis/0523 On Fri, Apr 6, 2018 at 1:48 PM Bartholomew Furrow wrote: > Sure! Here's my solution in Python 3: > > T = int(input()) > COR = 'CORRECT' > SMA

Re: [gcj] python interactive solution

2018-04-06 Thread Bartholomew Furrow
Sure! Here's my solution in Python 3: T = int(input()) COR = 'CORRECT' SMALL = 'TOO_SMALL' BIG = 'TOO_BIG' for qw in range(1, T+1): a, b = map(int, input().split()) n = int(input()) while True: mid = (a + b + 1) // 2 print(mid, flush=True) result = input().strip() if result == COR: break elif res