본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 20332번 Divvying Up

by 현장 2022. 9. 22.

-Code

n = int(input())
prize_money = list(map(int, input().split()))
print("yes" if sum(prize_money) % 3 == 0 else "no")