Rosetta Problems

Sum of weights

https://marisaoj.com/problem/418