112932024-08-04 11:46:38probaLudak Harcapython3Runtime error 0/10046ms14448 KiB
N = int(input())
tabla = list(map(int, input().split(' ')))

d = []
for i in range(1, 7):
    
    pos, lep = 0, 0
    
    while pos < N:
        lep += 1
        pos += i + tabla[i+pos] if i+pos < N else i
            
    d += [str(lep)]

print(' '.join(d))
        
        
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms2916 KiB
2Accepted17ms2916 KiB
subtask20/25
3Runtime error18ms3176 KiB
4Runtime error17ms2916 KiB
5Runtime error17ms2976 KiB
6Runtime error19ms3320 KiB
7Runtime error32ms4752 KiB
subtask30/40
8Runtime error18ms2980 KiB
9Runtime error18ms3172 KiB
10Runtime error20ms3644 KiB
11Runtime error24ms4436 KiB
12Runtime error28ms5688 KiB
13Runtime error35ms7948 KiB
14Runtime error41ms9428 KiB
15Runtime error41ms10624 KiB
subtask40/35
16Runtime error19ms3460 KiB
17Runtime error24ms4392 KiB
18Runtime error27ms6340 KiB
19Runtime error28ms7504 KiB
20Runtime error32ms6684 KiB
21Runtime error35ms9844 KiB
22Runtime error37ms11152 KiB
23Runtime error39ms12036 KiB
24Runtime error39ms9560 KiB
25Runtime error46ms14448 KiB