← Back to List

15436번: Wizard of Odds ↗

Solutions

Python 3
190 B | 190 chars
n,k=map(int,input().split())

z= 1

for i in range(1,k+1):
    z *= 2

    if z >= n:
        print("Your wish is granted!")
        break
else:
    print("You will become a flying monkey!")