Sum of sums

Problem Name:
Sum of sums
Site:CodeForces
Links:
Tags: