180162025-09-25 11:08:01birozsVölgy (100 pont)python3Wrong answer 80/100151ms3640 KiB
N = int(input())
maxszel = 0
szel = 0
bal = 0
for i in range(N):
    T = int(input())
    if T >= bal:
        szel += 1
        if szel >= 3 and szel > maxszel:
            maxszel = szel
        szel = 1
        bal = T
    else:
        szel += 1
print(maxszel-1)
SubtaskSumTestVerdictTimeMemory
base80/100
1Accepted0/016ms2864 KiB
2Wrong answer0/017ms3116 KiB
3Accepted5/516ms2868 KiB
4Accepted5/516ms2868 KiB
5Wrong answer0/516ms3268 KiB
6Wrong answer0/516ms2864 KiB
7Accepted5/516ms3120 KiB
8Accepted5/516ms2868 KiB
9Accepted5/517ms3072 KiB
10Wrong answer0/517ms2960 KiB
11Accepted5/523ms2960 KiB
12Accepted5/528ms2956 KiB
13Accepted5/528ms2992 KiB
14Wrong answer0/529ms3092 KiB
15Accepted5/5149ms3572 KiB
16Accepted5/5149ms3484 KiB
17Accepted5/5151ms3636 KiB
18Accepted5/5150ms3636 KiB
19Accepted5/5150ms3592 KiB
20Accepted5/5150ms3576 KiB
21Accepted5/5150ms3636 KiB
22Accepted5/5150ms3640 KiB