본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#29 백준 파이썬 [1546] 평균

#29 백준[1546] 평균


https://www.acmicpc.net/problem/1546





#Solution


a = int(input())
b = list(map(int, input().split()))
c=0
new_point=[]

for i in b:
c += i

avg_old = c/a

for i in b:
new_point.append(i/max(b) * 100)

print("%0.2f" % (sum(new_point)/a))