Rosetta Problems

Fair Chocolate-Cutting

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