38772023-03-03 12:59:21PallanekPéterVölgy (100 pont)python3Wrong answer 10/100180ms21216 KiB
n=int(input())
h=0; Lh=-1; T=[0]
for i in range(n):
    T.append(int(input()))
T.append(0); a=0
for i in range(1,n+1):
    if a<T[i]:
        if h>Lh:
            Lh=h
        h=0
    if T[i-1]<T[i]>T[i+1]:
        a=T[i]
    h+=1
print(Lh)
SubtaskSumTestVerdictTimeMemory
base10/100
1Accepted0/017ms11068 KiB
2Wrong answer0/018ms11220 KiB
3Wrong answer0/517ms11396 KiB
4Wrong answer0/517ms11488 KiB
5Wrong answer0/517ms11688 KiB
6Wrong answer0/517ms11900 KiB
7Wrong answer0/517ms12248 KiB
8Wrong answer0/517ms12316 KiB
9Wrong answer0/518ms12216 KiB
10Wrong answer0/517ms12372 KiB
11Wrong answer0/525ms12908 KiB
12Wrong answer0/532ms13048 KiB
13Wrong answer0/532ms13576 KiB
14Wrong answer0/534ms13520 KiB
15Wrong answer0/5180ms20668 KiB
16Wrong answer0/5180ms20896 KiB
17Wrong answer0/5168ms20816 KiB
18Wrong answer0/5179ms20976 KiB
19Wrong answer0/5173ms20944 KiB
20Accepted5/5172ms21092 KiB
21Accepted5/5172ms21216 KiB
22Wrong answer0/5173ms21112 KiB