题目描述 题解 一个非常显然的结论,如果我们要计算i-j(i<j)的答案: 如果 i − j > n 2 i-j>\frac{n}{2} i−j>2n,一定选择 n − ( i − j ) = j + n − i . n-(i-j)=j+n-i. n−(i−j)=j