111222024-07-07 11:36:43probaLudak Harcapython3Wrong answer 0/10052ms14440 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 < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    
    print(lep, end=' ')


SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2916 KiB
subtask20/25
3Runtime error18ms3036 KiB
4Runtime error18ms3108 KiB
5Runtime error18ms2964 KiB
6Runtime error20ms3020 KiB
7Runtime error39ms4904 KiB
subtask30/40
8Runtime error18ms2916 KiB
9Runtime error18ms3176 KiB
10Runtime error21ms3684 KiB
11Runtime error25ms4396 KiB
12Runtime error30ms5880 KiB
13Runtime error43ms8144 KiB
14Runtime error48ms9544 KiB
15Runtime error52ms10604 KiB
subtask40/35
16Runtime error21ms3304 KiB
17Runtime error25ms4496 KiB
18Runtime error28ms6412 KiB
19Runtime error30ms7340 KiB
20Runtime error35ms6636 KiB
21Runtime error41ms9696 KiB
22Runtime error41ms11168 KiB
23Runtime error46ms11988 KiB
24Runtime error48ms9568 KiB
25Runtime error52ms14440 KiB