본문 바로가기

Development/Algorithm

[Algorithm] 백준 1546번 문제풀이

728x90

 

Baekjoon Logo

 

백준 1546번의 문제풀이 입니다.

N = input()
points = input()

# string to list
points = points.split()

points = [int(i) for i in points]

maximum_value = max(points)

modified_points = list()

for i in range(len(points)):
    value = (points[i] / maximum_value) * 100
    modified_points.append(value)

average = sum(modified_points, 0.0) / len(modified_points)
print(average)
728x90