728x90
반응형

단순 사칙연산 문제이다.

T = int(input())
for _ in range(T):
    q = input()
    N = int(input())
    li = [int(input()) for i in range(N)]
    print("YES" if sum(li)%N == 0 else "NO")
728x90
반응형

+ Recent posts