摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 int a[50005]; 6 int main() 7 { 8 int i,j,maxn,minn,n,ans=0; 9 scanf("%d",&n);10 for(i=1;i<=n;i++)11 scanf("%d",&a[i]);12 for(i=1;i<=n;i++)13 {14 minn=n;15 maxn=1;16 for(j=i;j<=n;j++)17 ... 阅读全文