16431. 베시와 데이지

py_code·2020년 11월 24일

백준-브론즈4

목록 보기
41/51
bx, by = map(int, input().split())
dx, dy = map(int, input().split())
jx, jy = map(int, input().split())

LB = ((jx-bx)**2+(jy-by)**2)**0.5
LD = abs(jx-dx) + abs(jy-dy)
print('bessie' if LB<LD else 'daisy' if LB>LD else 'tie')
profile
개발자를 꿈꿉니다.

0개의 댓글