728x90
반응형
단순 수학 문제이다.
Br, Bc = map(int, input().split())
Dr, Dc = map(int, input().split())
Jr, Jc = map(int, input().split())
B = max(abs(Jr-Br), abs(Jc-Bc))
D = abs(Jr-Dr) + abs(Jc-Dc)
if B == D:
print("tie")
elif B < D:
print("bessie")
else:
print("daisy")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 16600번 Contemporary Art(python) (0) | 2021.02.08 |
---|---|
백준 알고리즘 16486번 운동장 한 바퀴(python) (0) | 2021.02.08 |
백준 알고리즘 16428번 A/B - 3(python) (0) | 2021.02.08 |
백준 알고리즘 16204번 카드 뽑기(python) (0) | 2021.02.08 |
백준 알고리즘 16199번 나이 계산하기(python) (0) | 2021.02.08 |