Rosetta Problems

文字列の町(The town of String)

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