run2ai / algorithm-taek

0 stars 0 forks source link

평균 구하기 #3

Closed Blzae97 closed 4 months ago

Blzae97 commented 4 months ago

시간 제한: 2초 난이도: 브론즈Ⅰ 백준 온라인 저지: 1546번 https://www.acmicpc.net/problem/1546

teang1995 commented 4 months ago
# https://www.acmicpc.net/problem/1546

N = int(input())
scores = input()
score_list = scores.split(" ")

score_list = [int(x) for x in score_list]
max_score = max(score_list)
fixed_score_list = [x * 100 / max_score for x in score_list]

print(sum(fixed_score_list) / len(fixed_score_list))