| 比赛 | 20240913练习 | 评测结果 | AWWWWWWWAA |
|---|---|---|---|
| 题目名称 | 奶牛排队 | 最终得分 | 30 |
| 用户昵称 | djyqjy | 运行时间 | 0.163 s |
| 代码语言 | C++ | 内存使用 | 3.50 MiB |
| 提交时间 | 2024-09-13 19:46:08 | ||
#include<bits/stdc++.h>
using namespace std;
const int N=100010;
int last;
int n;
int h;
int jsq;
int ans;
int main()
{
freopen("tahort.in","r",stdin);
freopen("tahort.out","w",stdout);
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&h);
if(h>last) jsq++;
else jsq=1;
if(jsq!=1) ans=max(ans,jsq);
last=h;
}
printf("%d",ans);
return 0;
}