Rosetta Problems

ゾンビ島 (Zombie Island)

https://atcoder.jp/contests/joi2016yo/tasks/joi2016yo_e