摘要: 这里是题目 这是暴力枚举方法。 scanf("%d",&n);for(i=1;ia[i]) break; else if(a[j+1]>=m) sum++,m=a[j+1]; }}printf("%d",sum);return 0; 这是单调栈的方法。 scanf(... 阅读全文