Rosetta Problems

ストーブ (Stove)

https://atcoder.jp/contests/joi2018ho/tasks/joi2018ho_a