111192024-07-07 11:28:55probaLudak Harcapython3Wrong answer 0/10052ms14372 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=' ')
print()

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2988 KiB
subtask20/25
3Runtime error17ms2916 KiB
4Runtime error18ms2852 KiB
5Runtime error18ms2988 KiB
6Runtime error20ms3236 KiB
7Runtime error39ms4812 KiB
subtask30/40
8Runtime error18ms2932 KiB
9Runtime error18ms3176 KiB
10Runtime error20ms3708 KiB
11Runtime error25ms4392 KiB
12Runtime error30ms5780 KiB
13Runtime error43ms8164 KiB
14Runtime error48ms9560 KiB
15Runtime error48ms10604 KiB
subtask40/35
16Runtime error21ms3288 KiB
17Runtime error25ms4392 KiB
18Runtime error28ms6236 KiB
19Runtime error32ms7480 KiB
20Runtime error35ms6456 KiB
21Runtime error41ms9860 KiB
22Runtime error45ms11424 KiB
23Runtime error48ms12116 KiB
24Runtime error48ms9340 KiB
25Runtime error52ms14372 KiB