-Code
from math import ceil
h1, d1, t1 = map(int, input().split())
h2, d2, t2 = map(int, input().split())
res1 = ceil((h2 - d1) / d1) * t1
res2 = ceil((h1 - d2) / d2) * t2
if res1 < res2:
print("player one")
elif res1 > res2:
print("player two")
else:
print("draw")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 30868번 개표 (1) | 2023.12.03 |
---|---|
[백준/파이썬] 27334번 마라톤 대회 (Marathon Race) (0) | 2023.12.02 |
[백준/파이썬] 30886번 Artistic Souvenir (0) | 2023.11.30 |
[백준/파이썬] 26145번 출제비 재분배 (0) | 2023.11.29 |
[백준/파이썬] 23901번 Bike Tour (0) | 2023.11.28 |