112222024-07-19 12:29:25probaFasor (40)python3Wrong answer 0/40298ms27792 KiB
# Bagoly
#sor01 = '10 3'
sor01 = input()
fszam, tav = int(sor01.split(' ')[0]), int(sor01.split(' ')[1])
fa = list(map(int, input().split(' ')))
#fa = list(map(int, '6 2 1 8 4 8 7 12 9 3'.split(' ')))
i = 0
while i < len(fa)-(2*tav):
    sav = fa[i: i+2*tav+1]
    if max(sav) <= fa[i]:
        break
    i+= 1
print(i)
SubtaskSumTestVerdictTimeMemory
base0/40
1Accepted0/017ms2988 KiB
2Wrong answer0/023ms4108 KiB
3Wrong answer0/218ms2916 KiB
4Wrong answer0/217ms2960 KiB
5Wrong answer0/217ms2960 KiB
6Wrong answer0/217ms2960 KiB
7Wrong answer0/217ms3064 KiB
8Wrong answer0/219ms3172 KiB
9Wrong answer0/220ms4128 KiB
10Wrong answer0/221ms4196 KiB
11Wrong answer0/224ms4068 KiB
12Wrong answer0/219ms3840 KiB
13Time limit exceeded0/2296ms14684 KiB
14Wrong answer0/248ms14680 KiB
15Time limit exceeded0/2296ms27304 KiB
16Time limit exceeded0/2289ms26308 KiB
17Time limit exceeded0/2298ms27528 KiB
18Time limit exceeded0/2293ms27656 KiB
19Time limit exceeded0/2296ms27792 KiB
20Wrong answer0/243ms11240 KiB
21Time limit exceeded0/2298ms26072 KiB
22Time limit exceeded0/2296ms25096 KiB