题解 100% AC
2025-08-11 20:29:23
发布于:江苏
6阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,cnt=0,ans=0,maxx=0;cin>>n;
for(int i=0;i<n;i++){
int x;
cin>>x;
if(x<=maxx)cnt=0;
else cnt++;
maxx=x;
ans=max(ans,cnt);
}
cout<<ans+1;
return 0;
}
这里空空如也
有帮助,赞一个