[BOJ / Python] 1546 평균

도니·2023년 3월 22일

BOJ / Python

목록 보기
22/105
post-thumbnail

문제

백준 1546 평균

코드

n = int(input())
score = list(map(int, input().split()))
max = max(score)

new_score = []
for t in score:
    new_score.append(t/max*100)
avg = sum(new_score)/n
print(avg)
profile
Where there's a will, there's a way

0개의 댓글