본문 바로가기
python-algorithm

백준 26575 Pups

by 무적김두칠 2023. 2. 27.

https://www.acmicpc.net/problem/26575

 

26575번: Pups

Congratulations, you adopted some little puppies! Now you just need to go grab food for them at the store. Your vet tells you how many pounds of food each pup will eat before your next trip to the store, so you just need to calculate the total amount of fo

www.acmicpc.net

 

1
2
3
4
5
6
if __name__ == '__main__':
    n = int(input())
    for _ in range(n):
        num_dogs, food_per_dog, pound_per_food= map(float, input().split())
        total = num_dogs*food_per_dog*pound_per_food
        print('$%.2f' % total)
cs
반응형

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

leetcode 2574. Left and Right Sum Differences  (0) 2023.02.28
백준 13698 Hawk eyes  (0) 2023.02.27
백준 26471 Farma  (0) 2023.02.24
백준 9771 Word Searching  (0) 2023.02.24
백준 27541 末尾の文字 (Last Letter)  (0) 2023.02.24

댓글