delete pics to save space
This commit is contained in:
20
1.1567.cpp
Normal file
20
1.1567.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include<cstdio>
|
||||
int main()
|
||||
{
|
||||
int last,x,cnt=1,res=1,n;
|
||||
scanf("%d%d",&n,&last);
|
||||
for(int i=1;i<n;i++)
|
||||
{
|
||||
scanf("%d",&x);
|
||||
if(last<x) cnt++;
|
||||
else
|
||||
{
|
||||
if(cnt>res) res=cnt;
|
||||
cnt=1;
|
||||
}
|
||||
last=x;
|
||||
}
|
||||
if(cnt>res) res=cnt;
|
||||
printf("%d\n",res);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user