37532023-03-02 18:55:07PallanekPéterVölgy (100 pont)python3Wrong answer 10/100178ms21560 KiB
n=int(input())
h=0; Lh=-1; T=[]
for i in range(n):
    T.append(int(input()))
T.append(0); a=0
for i in range(n):
    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/017ms10716 KiB
2Wrong answer0/018ms11412 KiB
3Wrong answer0/517ms11484 KiB
4Wrong answer0/517ms11716 KiB
5Wrong answer0/517ms12136 KiB
6Wrong answer0/517ms12104 KiB
7Wrong answer0/517ms12232 KiB
8Wrong answer0/517ms12484 KiB
9Wrong answer0/518ms12436 KiB
10Wrong answer0/518ms12544 KiB
11Wrong answer0/526ms13308 KiB
12Wrong answer0/534ms13044 KiB
13Wrong answer0/532ms13656 KiB
14Wrong answer0/534ms13776 KiB
15Wrong answer0/5175ms21108 KiB
16Wrong answer0/5178ms21116 KiB
17Wrong answer0/5167ms21244 KiB
18Wrong answer0/5178ms21224 KiB
19Wrong answer0/5166ms21264 KiB
20Accepted5/5172ms21172 KiB
21Accepted5/5170ms21412 KiB
22Wrong answer0/5178ms21560 KiB