반응형
https://www.acmicpc.net/problem/4344
# @Author YoungMinKim
# baekjoon
N = int(input())
ls = []
for _ in range(N):
ls.append(list(map(int,input().split()))[1:])
for i in ls:
avg = sum(i)/len(i)
cnt=0
for j in i:
if j > avg:
cnt+=1
else:
continue
print('%.3f%%'%((cnt/len(i))*100))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 5337 (0) | 2020.08.26 |
---|---|
baekjoon - python - 4999 (0) | 2020.08.26 |
baekjoon - python - 3052 (0) | 2020.08.26 |
baekjoon - python - 3046 (0) | 2020.08.26 |
baekjoon - python - 2998 (0) | 2020.08.26 |
댓글