31732023-02-21 13:26:09PallanekPéterVölgy (100 pont)python3Wrong answer 70/100143ms13860 KiB
n=int(input())
a=int(input())
db=0; Mdb=0;
for i in range(n-1):
    be=int(input())
    if be < a:
        db+=1
    else:
        if db>Mdb:
            Mdb=db
        a=be; db=1
if Mdb<2:
    print(-1)
else:
    print(Mdb)
    
SubtaskSumTestVerdictTimeMemory
base70/100
1Accepted0/017ms11048 KiB
2Wrong answer0/018ms11216 KiB
3Accepted5/517ms11676 KiB
4Wrong answer0/517ms11900 KiB
5Wrong answer0/517ms12068 KiB
6Wrong answer0/517ms12356 KiB
7Accepted5/517ms12420 KiB
8Accepted5/517ms12496 KiB
9Accepted5/518ms13200 KiB
10Wrong answer0/518ms13176 KiB
11Accepted5/524ms13332 KiB
12Accepted5/529ms13320 KiB
13Accepted5/529ms13056 KiB
14Wrong answer0/528ms13616 KiB
15Accepted5/5136ms13528 KiB
16Accepted5/5136ms13852 KiB
17Accepted5/5138ms13828 KiB
18Accepted5/5137ms13596 KiB
19Accepted5/5136ms13812 KiB
20Wrong answer0/5136ms13860 KiB
21Accepted5/5137ms13676 KiB
22Accepted5/5143ms13824 KiB