#Swaps

Sereja and Swaps(贪心+暴力枚举区间)

SerejaandSwaps  AC_Code: 1//枚举区间,o(n^2),然后将区间内最小的数逐个和区间外面最大的数交换2#include<bits/stdc++.h>3usingnamespacestd;4typedeflonglongll;5constintmaxn=...