Rosetta Problems

Idealistic Canister

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