38782023-03-03 13:00:12PallanekPéterVölgy (100 pont)python3Wrong answer 10/100181ms21260 KiB
N=int(input())
m=[0]; LH=-1; h=0; k=0
for i in range(N):
    m.append(int(input()))
m.append(0)
for i in range(1,N+1):
    if k<m[i]:
        if h>LH:
            LH=h
        h=0
    if m[i-1]<m[i]>m[i+1]:
        k=m[i]
    h+=1
print(LH)
SubtaskSumTestVerdictTimeMemory
base10/100
1Accepted0/017ms11112 KiB
2Wrong answer0/017ms11316 KiB
3Wrong answer0/517ms11708 KiB
4Wrong answer0/517ms11704 KiB
5Wrong answer0/517ms11868 KiB
6Wrong answer0/517ms12000 KiB
7Wrong answer0/517ms11892 KiB
8Wrong answer0/517ms12088 KiB
9Wrong answer0/518ms12296 KiB
10Wrong answer0/517ms12484 KiB
11Wrong answer0/525ms12980 KiB
12Wrong answer0/532ms12916 KiB
13Wrong answer0/532ms13508 KiB
14Wrong answer0/532ms13392 KiB
15Wrong answer0/5177ms20740 KiB
16Wrong answer0/5181ms20804 KiB
17Wrong answer0/5171ms20816 KiB
18Wrong answer0/5178ms20832 KiB
19Wrong answer0/5165ms20712 KiB
20Accepted5/5172ms20952 KiB
21Accepted5/5172ms20920 KiB
22Wrong answer0/5172ms21260 KiB