Find the sum of mindiff
The input contains a single integer, n (1 ≤ n ≤ 5 * 105).
Output a single integer, the answer to the problem.
3
8
For sample 1, the subsets with size ≤ 1 will not contribute to the answer.
mindiffmaxdiff
mindiffmaxdiff
mindiffmaxdiff
mindiffmaxdiff
The total sum is 8.
5
106

暂无题解