1
2
3
4
5
6
|
a=int(input())
b=int(input())
c=int(input())
ans=a+2*b+3*c
if ans<10: print("sad")
else: print("happy")
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 20233 (0) | 2021.03.11 |
---|---|
[백준] 20232 (0) | 2021.03.09 |
[백준] 18414 (0) | 2021.03.09 |
[백준] 18411 (0) | 2021.03.09 |
[백준] 18408 (0) | 2021.03.09 |
댓글