```
#include<bits/stdc++.h>
using namespace std;
int a[1000005], n, sum=1, maxl=-1000000000;
int main()
{
cin>>n;
for(int i=1; i<=n; i++) cin>>a[i];
for(int i=2; i<=n; i++)
{
if(a[i] > a[i-1]) sum++;
else sum=1;
maxl=max(maxl,sum);
}
cout<<maxl;
return 0;
}
```
建议你把数组开外面
by typerxiaozhu @ 2023-08-24 14:43:04
我一般把一句话套大括号的缩起来,再压就丑了
by typerxiaozhu @ 2023-08-24 14:43:54
感谢
打个广告,有兴趣就加入我的[团队](https://www.luogu.com.cn/team/59895)吧
by cuphead_P @ 2023-08-24 15:50:19