Rosetta Problems

ショッピングモールへのトンネル(Tunnel to shopping mall)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1169