https://www.acmicpc.net/problem/30979
1
2
3
4
5
6
7
8
9
10
11
12
13
|
def sol(t, candys):
if t > candys:
return "Padaeng_i Cry"
else:
return "Padaeng_i Happy"
if __name__ == '__main__':
t = int(input())
n = int(input())
candys = sum(list(map(int, input().split())))
print(sol(t, candys))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 31994 강당 대관 (0) | 2024.07.15 |
---|---|
백준 32025 체육은 수학과목 입니다 (0) | 2024.07.15 |
leetcode 2000. Reverse Prefix of Word (0) | 2024.05.02 |
leetcode 3131. Find the Integer Added to Array I (0) | 2024.04.30 |
leetcode 1266. Minimum Time Visiting All Points (1) | 2024.04.27 |
댓글