문제
In the United States, beverage container deposit laws, or so-called bottle bills, are designed to reduce litter and reclaim bottles, cans and other containers for recycling. Ten states currently have some sort of deposit-refund systems in place for different types of beverage containers. These deposit amounts vary from 2¢ to 15¢ per container, depending on the type and volume of the container. For example, Oregon charges a (refundable) deposit of 2¢ per refillable container, and 10¢ for all others (with exceptions).
For this problem you will calculate the amount a customer will get refunded for a given collection of empty containers in the state of New York. New York’s rules are very simple: there is a 5¢ deposit for containers of any size less than one gallon containing beer, malt, wine products, carbonated soft drinks, seltzer and water (that does not contain sugar).
입력
Input consists of a single line containing 6 space separated integer values representing the number of empty containers of beer, malt, wine products, carbonated soft drinks, seltzer and water. Each value will be in the range [0, 100].
출력
The output consists of a single line that contains a single integer representing the total refund the customer should get in cents.
풀이
n = map(int,input().split())
print(sum(n)*5)
'Develop > 알고리즘' 카테고리의 다른 글
[백준/Python] Silver IV #9372 상근이의 여행 (0) | 2023.08.18 |
---|---|
[백준/Python] Silver II #1138 한 줄로 서기 (0) | 2023.08.18 |
[백준/Python] Bronze V #20254 Site Score (0) | 2023.08.18 |
[백준/Python] Silver IV #1244 스위치 켜고 끄기 (0) | 2023.08.17 |
[백준/Python] Bronze I #9933 민균이의 비밀번호 (0) | 2023.08.17 |
Comment