Rosetta Problems

Allocation

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