Skip to content
Snippets Groups Projects
19.py 272 B
Newer Older
hacker717's avatar
hacker717 committed
n = 500
print(n)
s = input()
maxnum, minnum = 1001, 0

while s != "Угадал!":

    if s == "Больше":
        minnum = n
        n += (maxnum - n) // 2

    elif s == "Меньше":
        maxnum = n
        n -= (n - minnum) // 2

    print(n)
    s = input()