본문 바로가기
python-algorithm

[백준] 2765

by 무적김두칠 2021. 2. 25.

1
2
3
4
5
6
7
8
9
10
import sys
pi=3.1415927
n=1
while True:
    a,b,c=map(float, sys.stdin.readline().split())
    if b ==0 : break
    distance=a/(5280*12*pi*b
    mph=distance/*3600
    print("Trip #%d: %.2f %.2f" %(n,distance,mph))
    n+=1
cs

사실 크게 어려운 문제는 아닌데 대단히 귀찮습니다

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 3943  (0) 2021.02.26
[백준] 2997  (0) 2021.02.26
[백준] 2740  (0) 2021.02.23
[백준] 2530  (0) 2021.02.23
[백준] 2163  (0) 2021.02.23

댓글