백준 29163번: Счастье Мистера Бина #Python

ColorlessDia·2024년 2월 14일

algorithm/baekjoon

목록 보기
79/807
N = int(input())
number_list = list(map(int, input().split()))

happiness_score = sum([1 if number % 2 == 0 else -1 for number in number_list])

print('Happy') if 0 < happiness_score else print('Sad')

0개의 댓글