← Back to List

2765번: 자전거 속도 ↗

Solutions

Python 3
213 B | 213 chars
import math
case = 1
while True:
    a,b,c = map(float,input().split())
    if b<=0:
        break
    dis = math.pi * a * b /63360
    mph = dis*3600/c
    print("Trip #%d: %.2f %.2f" %(case,dis,mph))
    case+=1