#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,cnt,mx=0;
cin >> n;
vector < int > vec;
for(int i=0;i<n;i++)
{
cin >> a;
vec.push_back(a);
}
for(int i=0;i<n;i++)
{
cnt = 1;
for(int j=i+1;j<n;j++)
{
if(vec[i]<=vec[j])
{
cnt++;
i++;
}
else
break;
}
if(cnt>mx)
mx = cnt;
}
cout << mx << endl;
return 0;
}
Sunday, 19 March 2017
Codeforces Kefa and first steps Solution
About Amanur Rahman
Soratemplates is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates.
Codeforces Kefa and first steps Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment