38822023-03-03 13:41:47PallanekPéterVölgy (100 pont)python3Wrong answer 65/100150ms13704 KiB
n=int(input())
a=int(input())
db=1; Mdb=0; v=0
for i in range(n-1):
    be=int(input())
    if be < a:
        db+=1
        if v<be:
            v=be
    else:
        if db>Mdb:
            Mdb=db
        a=be; db=1; v=0
if Mdb<db-1:
    Mdb=db
if Mdb<2:
    print(-1)
else:
    print(Mdb)
SubtaskSumTestVerdictTimeMemory
base65/100
1Accepted0/017ms10844 KiB
2Wrong answer0/018ms11060 KiB
3Accepted5/517ms11500 KiB
4Accepted5/517ms11436 KiB
5Wrong answer0/517ms11488 KiB
6Wrong answer0/517ms11884 KiB
7Accepted5/517ms12276 KiB
8Accepted5/517ms11960 KiB
9Wrong answer0/517ms12540 KiB
10Wrong answer0/517ms12580 KiB
11Accepted5/524ms12932 KiB
12Accepted5/529ms12976 KiB
13Wrong answer0/528ms13056 KiB
14Wrong answer0/528ms13108 KiB
15Accepted5/5143ms12980 KiB
16Accepted5/5143ms13164 KiB
17Wrong answer0/5143ms13468 KiB
18Accepted5/5150ms13428 KiB
19Accepted5/5142ms13560 KiB
20Accepted5/5145ms13516 KiB
21Accepted5/5144ms13416 KiB
22Accepted5/5143ms13704 KiB