标签:
#include <cstdio>
using namespace std;
int a[100000 + 100];
int main(){
int n;
scanf("%d",&n);
for(int i = 0 ;i < n ;++i)
scanf("%d",&a[i]);
int cur = 1,ans = 0;
for(int i = 1;i < n ;++i){
if(a[i] >= a[i - 1]) ++cur;
else{
if(ans < cur) ans = cur;
cur = 1;
}
}
printf("%d\n", cur>ans?cur:ans);
return 0;
}
[2016-03-23][codeforces][580][A][Kefa and First Steps]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/15434871b8b6f9a924660ef4ee6ebce6.html