Rosetta Problems

小籠包 (Xiao Long Bao)

https://atcoder.jp/contests/joi2014yo/tasks/joi2014yo_f