본문 바로가기
python-algorithm

[백준] 2547

by 무적김두칠 2020. 12. 22.

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
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2576  (0) 2020.12.22
[백준] 2566  (0) 2020.12.22
[백준] 2523  (0) 2020.12.18
[백준] 2522  (0) 2020.12.18
[백준] 2511  (0) 2020.12.18

댓글