我竟然会错意了......
我本来以为低洼地里能坑坑洼洼的......
#include<iostream>
using namespace std;
short lst1[10000];
bool lst2[10000];
int main()
{
short n,max=0,x,s=0;
cin>>n;
for(int i=0;i<=n-1;i++){
cin>>x;
if(x>=max) max=x;
else{
lst2[i]=1;
}
lst1[i]=x;
}
max=0;
bool a=0;
for(int i=n-1;i>=0;i--){
if(lst1[i]>=max){
max=lst1[i];
a=0;
}
else{
if(lst2[i]){
if(!a) s+=1;
a=1;
}
else a=0;
}
}
cout<<s<<endl;
return 0;
}
不过仍然80分