Find All Root (hard)

2 secs 1024 MB
hide's icon hide

sample_2.txt


入力

出力