n = int(input())
c = list(map(int,input().split(" ")))
maxs = []
counts = 1
for index in range(n-1):
if c[index] < c[index+1]:
counts += 1
else:
maxs.append(counts)
counts = 1
# 再添加一次 防止有一直增加的情况 不能执行else
maxs.append(counts)
print(max(maxs))
P1567 统计天数 python代码
最新推荐文章于 2023-02-27 21:21:24 发布