티스토리 뷰
num = int(input())
sm = 0
ave = 0
num1 = 0
for Repeat in range(0, num):
case = list(map(int,input().split()))
for repeat in range(1, case[0]+1):
sm += case[repeat]
ave = sm / case[0]
for rep in range(1, case[0]+1):
if case[rep] > ave:
num1 += 1
result = num1 / case[0] * 100
print("%.3f%%"%(result))
sm = 0
ave = 0
num1 = 0
'문제 풀이 > Baekjoon Online Judge' 카테고리의 다른 글
| [python3] 1065번 한수 (0) | 2018.04.02 |
|---|---|
| [python3] 4673번 셀프 넘버 (0) | 2018.04.02 |
| [python3] 1546번 평균 (0) | 2018.03.29 |
| [python3] 10871번 X보다 작은 수 (0) | 2018.03.29 |
| [python3] 10817번 세 수 (0) | 2018.03.29 |
댓글