Home
Volumes
Contests
Sections
Forums
Users
Print
Help
About
Forums
>
Discussion of problems
> topic:
Problem "50010 - Weighted Average"
mxhemallari25
08:28:08 PM
0
#mxhemallari
score= []
weights= []
weighted_parts = [scores[i] * weights[i] for i in range(len(scores))]
result = sum(weighted_parts) / sum(weights)
print(result)
www.contester.ru