power-girl0-0

[ 1546 ] 평균 본문

백준 알고리즘/python

[ 1546 ] 평균

power-girl0-0 2021. 3. 2. 11:51
728x90

import sys

total = 0
num = int(input())
score = list(map(int, sys.stdin.readline().split()))
max = max(score)

for i in range(len(score)):
   result=score[i]/max*100
   total += result
print("%.2f"%(total/num))
728x90

'백준 알고리즘 > python' 카테고리의 다른 글

[ 8958 ] OX퀴즈  (0) 2021.03.02
[ 3052 ] 나머지  (0) 2021.03.02
[ 2577 ] 숫자의 개수  (0) 2021.03.02
[ 2562 ] 최댓값  (0) 2021.03.02
[ 10818 ] 최소, 최대  (0) 2021.03.02
Comments