반응형
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
S = int(input())
M = int(input())
L = int(input())
score = S+2*M+3*L
if score>=10:
print('happy')
else:
print('sad')
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 4101 (0) | 2020.10.14 |
---|---|
baekjoon - python - 16430 (0) | 2020.10.14 |
baekjoon - python - 18108 (0) | 2020.10.14 |
baekjoon - python - 5355 (0) | 2020.10.14 |
baekjoon - python - 10845 (0) | 2020.10.10 |
댓글