111172024-07-07 11:20:43probaLudak Harcapython3Wrong answer 0/10054ms14372 KiB
# ludak

n = input()
tabla = [int(i) for i in input().split(' ')]

for i in range(1, 7):
    p, lep = 0, 1
    try:
        while p+i+tabla[p+i] < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    print(lep)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2916 KiB
subtask20/25
3Runtime error17ms2960 KiB
4Runtime error17ms2980 KiB
5Runtime error17ms3192 KiB
6Runtime error19ms3100 KiB
7Runtime error39ms4900 KiB
subtask30/40
8Runtime error18ms2916 KiB
9Runtime error18ms3172 KiB
10Runtime error21ms3580 KiB
11Runtime error25ms4532 KiB
12Runtime error30ms6000 KiB
13Runtime error39ms8144 KiB
14Runtime error48ms9688 KiB
15Runtime error54ms10604 KiB
subtask40/35
16Runtime error21ms3300 KiB
17Runtime error25ms4392 KiB
18Runtime error28ms6236 KiB
19Runtime error34ms7484 KiB
20Runtime error34ms6632 KiB
21Runtime error37ms9856 KiB
22Runtime error41ms11280 KiB
23Runtime error46ms11988 KiB
24Runtime error46ms9432 KiB
25Runtime error52ms14372 KiB