Rosetta Problems

Distribution of Candy

https://onlinejudge.u-aizu.ac.jp/problems/4012