본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]2765번 자전거 속도

by 현장 2021. 5. 2.

-코드

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