본문 바로가기
python-algorithm

백준 30979 유치원생 파댕이 돌보기

by 무적김두칠 2024. 6. 19.

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
반응형

댓글