백준 1546 파이썬 - 평균

304호 하숙생·2022년 7월 25일
0
post-thumbnail


Solve

n = int(input()) #과목수
score = list(map(int, input().split())) # 과목별 점수 
max = max(score) # 과목중 가장 높은 점수 

liesocre = []
for i in score:
    liesocre.append(i/max * 100)
newavg = sum(liesocre)/n
print(newavg)
profile
304호 하숙생의 코딩일기장

0개의 댓글