111212024-07-07 11:33:34probaLudak Harcapython3Wrong answer 0/10054ms14312 KiB
# ludak

n = int(input())
tabla = [int(i) for i in input().split(' ')]
a = []
for i in range(1, 7):
    p, lep = 0, 1
    try:
        while p+i < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    
    a += [lep]
print(" ".join(str(i) for i in a))

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2916 KiB
subtask20/25
3Runtime error17ms3176 KiB
4Runtime error17ms2948 KiB
5Runtime error17ms2972 KiB
6Runtime error19ms3208 KiB
7Runtime error39ms4812 KiB
subtask30/40
8Runtime error17ms3104 KiB
9Runtime error18ms3300 KiB
10Runtime error21ms3684 KiB
11Runtime error25ms4432 KiB
12Runtime error30ms5976 KiB
13Runtime error41ms7980 KiB
14Runtime error46ms9540 KiB
15Runtime error50ms10604 KiB
subtask40/35
16Runtime error20ms3300 KiB
17Runtime error25ms4432 KiB
18Runtime error27ms6376 KiB
19Runtime error32ms7372 KiB
20Runtime error37ms6636 KiB
21Runtime error39ms9716 KiB
22Runtime error45ms11192 KiB
23Runtime error45ms11984 KiB
24Runtime error48ms9540 KiB
25Runtime error54ms14312 KiB