9 条题解
-
-4
- 1
信息
- ID
- 741
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 2077
- 已通过
- 600
- 上传者
n=int(input())
a=input()
b=a.split()
c=1
d=[]
for i in range (0,len(b)-1):
if int(b[i])<int(b[i+1]):
c+=1
else:
d.append(c)
c=1
d.append(c)
print(max(d))
n=int(input())
m=list(map(int,input().split()))
k=1
s=0
for i in range(len(m)-1):
if m[i]<m[i+1]:
k+=1
elif m[i]>=m[i+1]:
if k>s:
s=k
k=1
if k>s:
s=k
print(s)
n=int(input())
a=input()
b=a.split()
r=[];p=[];m=1;g=[]
for i in b:
r.append(int(i))
for k in range(1,len(r)):
d=r[k]-r[k-1]
p.append(d)
for t in range(len(p)):
if p[t]>0:
m+=1
elif p[t]<=0 and p[t-1]>0:
g.append(m)
m=1
elif p[t]<=0 and p[t-1]<=0:
m=1
g.append(m)
print(max(g))
n=int(input()) b=input().split() c=1 maxn=0 for i in range (0,len(b)-1): if int(b[i])<int(b[i+1]): c+=1 else: if c>maxn: maxn=c c=1 if c>maxn: maxn=c print(maxn)
n=int(input()) m=list(map(int,input().split())) b=1 s=0 for i in range(len(m)-1): if m[i]<m[i+1]: b+=1 elif m[i]>=m[i+1]: if b>s: s=b b=1 if b>s: s=b print(s)
c=1 x=1 a=int(input()) b=list(map(int,input().split())) for i in range(a-1): if b[i]<b[i+1]: x=x+1 if c<x: c=x else: c=c else: x=1 print(c)
n=int(input())
m=list(map(int,input().split()))
b=1
s=0
for i in range(len(m)-1):
if m[i]<m[i+1]:
b+=1
elif m[i]>=m[i+1]:
if b>s:
s=b
b=1
if b>s:
s=b
print(s)