-코드
import math
n = 1
while 1:
d, r, s = map(float, input().split())
if r == 0:
break
r = d * math.pi * r / 12 / 5280
print("Trip #%d: %.2f %.2f" % (n, r, r / s * 3600))
n += 1
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬]10996번 별 찍기 - 21 (0) | 2021.05.02 |
---|---|
[백준/파이썬]10953번 A+B - 6 (0) | 2021.05.02 |
[백준/파이썬]21603번 K 2K 게임 (0) | 2021.05.01 |
[백준/파이썬]17944번 퐁당퐁당 1 (0) | 2021.05.01 |
[백준/파이썬]10845번 큐 (0) | 2021.04.30 |