Rosetta Problems

複雑な文字列 (Complex String)

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