在交换操作中,一定别忘了保证 l1 < l2\text{l1 < l2}l1 < l2 !!
交换前一定要保证,要不然就会莫名其妙少一些数!!
if (l1 > l2) swap(l1, l2), swap(r1, r2);