본문 바로가기
Algorithm

[구현/수학] 백준 5666 Hot Dogs - 파이썬(Python)

by jangThang 2023. 2. 28.
반응형

백준 온라인 저지

 

[ 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

     

     

    star가 되고나서 Tistory

    반응형

    댓글