반응형
[ Contents ]
1. 문제 (링크 참조)
5666번: Hot Dogs
In 2012 a new world record was set in the famous Nathan’s Hot Dog Eating Competition: the champion, Joey Chestnut, ate 68 hot dogs in ten minutes, an amazing increase from the 62 hot dogs eaten by the same Chestnut in 2011. Nathan’s Famous Corporation,
www.acmicpc.net
2. 문제 풀이
H를 P로 나눈 값을 소수 둘째자리까지 출력합니다.
3. 코드
while True:
try:
H, P = map(int, input().split())
print("%.2f" % (H/P))
except EOFError:
break
반응형
'Algorithm' 카테고리의 다른 글
[구현/수학] 백준 21964 선린인터넷고등학교 교가 - 파이썬(Python) (0) | 2023.03.02 |
---|---|
[구현/수학] 백준 4740 거울, 오! 거울 - 파이썬(Python) (0) | 2023.03.01 |
[구현/수학] 백준 9366 삼각형 분류 - 파이썬(Python) (0) | 2023.02.27 |
[구현/수학] 백준 21866 추첨을 통해 커피를 받자 - 파이썬(Python) (0) | 2023.02.26 |
[구현/수학] 백준 16504 종이접기 - 파이썬(Python) (0) | 2023.02.25 |
댓글