새소식

Algorithm/Acmicpc.net (백준)

[python] 백준 : 사탕 선생 고창영 (2547번)

  • -
t = int(input())
for i in range(t):
    total = 0
    input()
    n = int(input())
    for j in range(n):
        candy = int(input())
        total += candy
    if total % n == 0:
        print("YES")
    else:
        print("NO")
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.