111162024-07-07 11:20:15probaLudak Harcapython3Wrong answer 0/10054ms14572 KiB
# ludak

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

for i in range(1, 7):
    p, lep = 0, 1
    try:
        while p+i+tabla[p+i] < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    print(lep, end=' ')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2988 KiB
subtask20/25
3Runtime error17ms2820 KiB
4Runtime error17ms2916 KiB
5Runtime error17ms2964 KiB
6Runtime error19ms3308 KiB
7Runtime error41ms5048 KiB
subtask30/40
8Runtime error17ms3044 KiB
9Runtime error18ms3044 KiB
10Runtime error20ms3684 KiB
11Runtime error25ms4456 KiB
12Runtime error30ms5756 KiB
13Runtime error41ms7944 KiB
14Runtime error46ms9412 KiB
15Runtime error52ms10512 KiB
subtask40/35
16Runtime error21ms3300 KiB
17Runtime error24ms4392 KiB
18Runtime error28ms6272 KiB
19Runtime error30ms7340 KiB
20Runtime error35ms6540 KiB
21Runtime error39ms9712 KiB
22Runtime error41ms11276 KiB
23Runtime error45ms12004 KiB
24Runtime error46ms9560 KiB
25Runtime error54ms14572 KiB