알고리즘/배열(array)

백준 1546 python

자코린이 2023. 6. 13. 22:56
list_count = int(input())
score = list(map(int, input().split()))
after_list = []
max_score = max(score)
for i in score:
    after_scroe = float(i / max_score * 100)
    after_list.append(after_scroe)
    

print(float(sum(after_list)) / list_count)

'알고리즘 > 배열(array)' 카테고리의 다른 글

Find Numbers with Even Number of Digits python  (0) 2023.06.26
Max Consecutive Ones python  (0) 2023.06.26
백준 10811 python  (0) 2023.06.13
python snake game (20230612 coding test)  (0) 2023.06.12
백준 3052 python  (0) 2023.06.11