티스토리 뷰

Python/코딩테스트

[BJ/브론즈] 평균

yoom:) 2025. 1. 26. 18:06

https://www.acmicpc.net/problem/1546

 

def solution():
    N=int(input()) # 시험 본 과목의 개수
    scores = list(map(int,input().split())) # 시험 점수
    
    M = max(scores) # 성적 중 최대값
    new_score = [(score / M) * 100 for score in scores]
    new_average = sum(new_score)/N
    
    print(new_average)

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함