Rightful Distribution

Problem Name:
Rightful Distribution
Site:Spoj
Links:
Tags:
Problem setters: