111182024-07-07 11:27:56probaLudak Harcapython3Wrong answer 0/10054ms14592 KiB
# ludak

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

for i in range(1, 7):
    p, lep = 0, 1
    try:
        while p+i < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    
    print(lep,end=' ')

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2964 KiB
subtask20/25
3Runtime error18ms3096 KiB
4Runtime error17ms2952 KiB
5Runtime error17ms3044 KiB
6Runtime error19ms3300 KiB
7Runtime error39ms4908 KiB
subtask30/40
8Runtime error17ms2968 KiB
9Runtime error19ms3344 KiB
10Runtime error21ms3860 KiB
11Runtime error25ms4392 KiB
12Runtime error30ms5756 KiB
13Runtime error41ms8036 KiB
14Runtime error48ms9540 KiB
15Runtime error50ms10616 KiB
subtask40/35
16Runtime error20ms3300 KiB
17Runtime error25ms4432 KiB
18Runtime error28ms6420 KiB
19Runtime error30ms7336 KiB
20Runtime error34ms6396 KiB
21Runtime error37ms9748 KiB
22Runtime error43ms11548 KiB
23Runtime error48ms11988 KiB
24Runtime error48ms9412 KiB
25Runtime error54ms14592 KiB