112652024-08-03 09:16:46probaLegcsalódottabb versenyző (75 pont)python3Wrong answer 25/7574ms14712 KiB
#N = 10; sor = list(map(int, '2 5 3 8 2 5 4 9 8 9'.split(' ')))
N = int(input()); sor = list(map(int, input().split(' ')))

for i, j in enumerate(sor):
    if i == 0:
        csp, mp, csh = 0, 0, 0
    else:
        if j > sor[mp]:
            if csh < i-mp:
                csh = i-mp
                csp = mp
                mp = i
print(csp+1)                
            
    
                
        
        
    
SubtaskSumTestVerdictTimeMemory
base25/75
1Accepted0/017ms2916 KiB
2Wrong answer0/071ms14544 KiB
3Wrong answer0/517ms3076 KiB
4Accepted5/517ms2964 KiB
5Accepted5/517ms2916 KiB
6Wrong answer0/517ms2788 KiB
7Wrong answer0/517ms2916 KiB
8Wrong answer0/517ms3048 KiB
9Accepted5/517ms3052 KiB
10Wrong answer0/517ms3044 KiB
11Wrong answer0/517ms3180 KiB
12Accepted5/518ms3056 KiB
13Accepted5/574ms14564 KiB
14Wrong answer0/572ms14596 KiB
15Wrong answer0/572ms14608 KiB
16Wrong answer0/568ms14564 KiB
17Wrong answer0/568ms14712 KiB