BoB002-F2: MIN of Pairs (Hard)

2 secs 1024 MB
kyaneko999's icon kyaneko999

testcase-5.txt


入力

出力