Sum of products

Problem Name:
Sum of products
Site:Spoj
Links:
Tags:
Problem setters: