// acm/刷题模板 #include<bits/stdc++.h> /*----------------------*/ #define io ios::sync_with_stdio(false); cin.tie(0);cout.tie(0) #define For(i,a,b) for(int i=a;i<=b;i++) #define debug(x) cout<<#x<<"="<<x<<endl; #define int long long #define INF 0x3f3f3f3f #define endl '\n' usingnamespace std;
constdouble PI=3.141593; constint maxn=2e8+114514; constint N=1e4+10; /*----------------------*/ int ma=-INF,mi=INF; int cnt=0,sum,ans,len; bool vis[N],flag; string s,ss; /*----------------------*/ int n,m,k,x,y; int a[N]; voidsolve() { int n; For(i,1,n){