Skip to content

Commit 3a88e6f

Browse files
committedMar 30, 2023
[#5] Feat: Add 평균
1 parent 527f25c commit 3a88e6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎1546.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 평균
2+
3+
M = int(input())
4+
scores = list(map(int, input().split(' ')))
5+
bestScore = max(scores)
6+
totalFakeScore = 0
7+
8+
for score in scores:
9+
totalFakeScore += score/bestScore*100
10+
11+
print(totalFakeScore/M)

0 commit comments

Comments
 (0)
Please sign in to comment.