728x90
풀이
서로 다른 종류의 간식의 개수가 주어진다. 입력되는 간식의 개수에 맞게 happiness score를 계산해주면 된다.
소스코드
출처
19602번: Dog Treats
There are three lines of input. Each line contains a non-negative integer less than 10. The first line contains the number of small treats, S, the second line contains the number of medium treats, M, and the third line contains the number of large treats,
www.acmicpc.net
728x90
'PS > Baekjoon Online Judge' 카테고리의 다른 글
[백준 20232] Archivist [Python] (0) | 2023.05.13 |
---|---|
[백준 20215] Cutting Corners [Python] (0) | 2023.05.12 |
[백준 18698] The Walking Adam [Python] (0) | 2023.05.10 |
[백준 18691] Pokemon Buddy [Python] (0) | 2023.05.08 |
[백준 18414] X に最も近い値 (The Nearest Value) [Python] (0) | 2023.05.07 |