## 문제
BOJ 1546 평균
## 풀이
점수중 최댓값을 M
모든 점수를 점수/M*100 으로 고친다.
점수를 조작한 후 새 평균을 구하는 프로그램.
## 코드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_num = input() | |
input_score = list(map(int,input().split())) | |
result_score = [] | |
for k in input_score: | |
result_score += [k/max(input_score)*100] | |
print(sum(result_score)/len(result_score)) |
0 댓글