← Back to List

12756번: 고급 여관 ↗

Solutions

Python 3
206 B | 206 chars
a,b=map(int,input().split(" "))
c,d=map(int,input().split(" "))

while b > 0 and d > 0:
    b-=c
    d-=a

if b <= 0 and d <= 0:
    print("DRAW")
elif b>0:
    print("PLAYER A")
else:
    print("PLAYER B")