Find All Root (hard)

2 secs 1024 MB
hide's icon hide

sample_1.txt


入力

出力