본문 바로가기

알고리즘 문제풀이

[백준]1546 평균 파이썬 Python

num = int(input())
score = list(map(int,input().split()))
max_score = max(score)
print(sum(score) / max_score * 100 / num)

말을 어렵게 했지, 식을 정리하니 쉬웠다.