python-algorithm

[백준] 2547

무적김두칠 2020. 12. 22. 16:46

1
2
3
4
5
6
7
8
9
10
11
import sys
t=int(sys.stdin.readline())
 
for _ in range (t):
    br=sys.stdin.readline()
    studentN=int(sys.stdin.readline())
    tmp=[]
    for i in range(studentN):
        tmp.append(int(sys.stdin.readline()))
    if sum(tmp)%studentN==0print("YES")
    else : print("NO")
cs
반응형