G - Topological Heads

2 secs 1024 MB
uni_kakurenbo's icon uni_kakurenbo

00_sample-0001.txt


入力

出力