Rosetta Problems

建物と魔女

https://atcoder.jp/contests/tkppc4-2/tasks/tkppc4_2_l