117902024-11-10 19:28:33MLudak Harcapython3Wrong answer 65/100136ms13756 KiB
from sys import stdin, stdout

N = int(input(""))
J = list(map(int, stdin.readline().split()))

position = 0
step = 0
rolls = []

for i in range(1, 7):
    while position < N:
        position += i
        step += 1
        if position < N:
            position += J[position]
    print(step, end=" ")
    step = 0
    position = 0
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms2872 KiB
2Accepted14ms2872 KiB
subtask225/25
3Accepted16ms2860 KiB
4Accepted16ms3056 KiB
5Accepted17ms3112 KiB
6Accepted28ms3128 KiB
7Accepted136ms4876 KiB
subtask340/40
8Accepted17ms3128 KiB
9Accepted16ms3140 KiB
10Accepted18ms3636 KiB
11Accepted21ms4588 KiB
12Accepted26ms5736 KiB
13Accepted35ms8092 KiB
14Accepted41ms9588 KiB
15Accepted41ms10168 KiB
subtask40/35
16Accepted34ms3384 KiB
17Accepted20ms4496 KiB
18Wrong answer24ms6336 KiB
19Wrong answer28ms7116 KiB
20Accepted30ms6612 KiB
21Wrong answer35ms9832 KiB
22Wrong answer35ms10932 KiB
23Wrong answer37ms11628 KiB
24Accepted39ms9560 KiB
25Wrong answer46ms13756 KiB