112292024-07-20 23:42:03probaLegcsalódottabb versenyző (75 pont)python3Wrong answer 0/7518ms3080 KiB
N = 10
#N = int(input())
sor = list(map(int, '2 5 3 8 2 5 4 9 8 9'.split(' ')))
#sor = list(map(int, input().split(' ')))
hisz = [0]*N

for i, j in enumerate(sor):
    if i == 0:
        elso, epont, hisz[i] = i, j, 1

    elif epont >= j:
        hisz[elso] += 1
        
    else:
        elso, epont = i, j
        hisz[i] = 1

if hisz.count(0) == N-1 or hisz.count(max(hisz)) > 1:
    print(-1)
    
else:
    print(hisz.index(max(hisz))+1)
    

        
        
        
    
    
SubtaskSumTestVerdictTimeMemory
base0/75
1Accepted0/017ms3044 KiB
2Wrong answer0/018ms2988 KiB
3Wrong answer0/517ms3044 KiB
4Wrong answer0/517ms2960 KiB
5Wrong answer0/517ms3044 KiB
6Wrong answer0/517ms2912 KiB
7Wrong answer0/517ms3080 KiB
8Wrong answer0/517ms2920 KiB
9Wrong answer0/517ms2960 KiB
10Wrong answer0/517ms3044 KiB
11Wrong answer0/517ms3044 KiB
12Wrong answer0/517ms3044 KiB
13Wrong answer0/518ms2972 KiB
14Wrong answer0/517ms3044 KiB
15Wrong answer0/517ms3044 KiB
16Wrong answer0/517ms2984 KiB
17Wrong answer0/517ms2916 KiB