112252024-07-20 23:26:44probaLegcsalódottabb versenyző (75 pont)python3Wrong answer 20/7587ms15168 KiB
#N = 10
N = input()
#sor = list(map(int, '2 5 3 8 2 5 4 9 8 9'.split(' ')))
sor = list(map(int, input().split(' ')))
hisz = [0]*int(N)
epont, elso = None, None
for i, j in enumerate(sor):
    if epont == None:
        elso, epont = i, j
        hisz[i] = 1
    elif epont >= j:
        hisz[elso] += 1
    else:
        elso, epont = i, j
        hisz[i] = 1
print(hisz.index(max(hisz))+1)
    

        
        
        
    
    
SubtaskSumTestVerdictTimeMemory
base20/75
1Accepted0/018ms2916 KiB
2Wrong answer0/082ms15128 KiB
3Wrong answer0/517ms2916 KiB
4Wrong answer0/517ms3044 KiB
5Accepted5/517ms2816 KiB
6Accepted5/517ms2960 KiB
7Wrong answer0/517ms2916 KiB
8Wrong answer0/518ms3064 KiB
9Accepted5/517ms3180 KiB
10Wrong answer0/517ms3192 KiB
11Wrong answer0/517ms3048 KiB
12Wrong answer0/518ms3112 KiB
13Accepted5/582ms15144 KiB
14Wrong answer0/587ms15168 KiB
15Wrong answer0/586ms15076 KiB
16Wrong answer0/581ms15076 KiB
17Wrong answer0/579ms15004 KiB