112262024-07-20 23:28:06probaLegcsalódottabb versenyző (75 pont)python3Wrong answer 10/7586ms14712 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
if hisz.count(1) == 1:
    print(-1)
else:
    print(hisz.index(max(hisz))+1)
    

        
        
        
    
    
SubtaskSumTestVerdictTimeMemory
base10/75
1Wrong answer0/018ms3044 KiB
2Wrong answer0/086ms14564 KiB
3Wrong answer0/517ms2952 KiB
4Wrong answer0/517ms3044 KiB
5Wrong answer0/517ms2848 KiB
6Accepted5/517ms3044 KiB
7Wrong answer0/517ms2916 KiB
8Wrong answer0/518ms3044 KiB
9Accepted5/518ms3052 KiB
10Wrong answer0/517ms2972 KiB
11Wrong answer0/517ms2992 KiB
12Wrong answer0/518ms2960 KiB
13Wrong answer0/582ms14524 KiB
14Wrong answer0/582ms14460 KiB
15Wrong answer0/583ms14712 KiB
16Wrong answer0/586ms14692 KiB
17Wrong answer0/579ms14456 KiB