Pairwise Coprime Segments

2 secs 1024 MB
milkcoffee's icon milkcoffee

testcase-1.txt


入力

出力