98312024-03-09 19:59:47zhuyiLudak Harcapython3Wrong answer 0/100153ms36016 KiB
n = int(input())
mezok = input().strip().split()
mezok = list(map(int, mezok))
o = []
for i in range(1,7):
    current_field = 0
    moves = 0
    while current_field<n:
        current_field += i
        if current_field < n:
            current_field += mezok[current_field]
        moves += 1
    
    o.append(moves)

print(o)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer18ms11012 KiB
2Wrong answer17ms11360 KiB
subtask20/25
3Wrong answer17ms11544 KiB
4Wrong answer17ms11552 KiB
5Wrong answer19ms11940 KiB
6Wrong answer30ms12224 KiB
7Wrong answer153ms15668 KiB
subtask30/40
8Wrong answer18ms12336 KiB
9Wrong answer18ms12944 KiB
10Wrong answer20ms14408 KiB
11Wrong answer23ms16324 KiB
12Wrong answer28ms19228 KiB
13Wrong answer37ms23200 KiB
14Wrong answer43ms27348 KiB
15Wrong answer45ms28972 KiB
subtask40/35
16Wrong answer39ms14024 KiB
17Wrong answer23ms16572 KiB
18Wrong answer26ms20164 KiB
19Wrong answer28ms22216 KiB
20Wrong answer30ms21356 KiB
21Wrong answer37ms27448 KiB
22Wrong answer37ms30036 KiB
23Wrong answer39ms32656 KiB
24Wrong answer43ms27720 KiB
25Wrong answer50ms36016 KiB