模板一: 最裸的模板,效率低,容易T,这道题就TLE了。 #include<bits/stdc++.h> using namespace std; #define N 100010 int n,a[N]; void swap(