Rosetta Problems

軍艦ゲーム

https://atcoder.jp/contests/arc016/tasks/arc016_4