Rosetta Problems

迷い猫 (Stray Cat)

https://atcoder.jp/contests/joisc2020/tasks/joisc2020_i