https://www.acmicpc.net/problem/1546
풀이
a = int(input())
b = list(map(int, input().split()))
maxb = max(b)
ls = []
for i in b:
ls.append(i/maxb *100)
avg = sum(ls)/a
print(avg)
'Python > Baekjoon' 카테고리의 다른 글
백준 4344번 : 평균은 넘겠지 (0) | 2022.10.06 |
---|---|
백준 8958번 : OX퀴즈 (0) | 2022.10.06 |
백준 3052번 : 나머지 (0) | 2022.10.06 |
백준 2562번 : 최댓값 (0) | 2022.10.06 |
백준 10818번 : 최소, 최대 (0) | 2022.10.06 |