Rosetta Problems

B.fractal structure

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