111152024-07-07 11:19:41probaLudak Harcapython3Wrong answer 0/10054ms15084 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=' ')
print()    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2980 KiB
subtask20/25
3Runtime error18ms3004 KiB
4Runtime error17ms3216 KiB
5Runtime error17ms2960 KiB
6Runtime error20ms3336 KiB
7Runtime error41ms5016 KiB
subtask30/40
8Runtime error18ms2952 KiB
9Runtime error19ms3252 KiB
10Runtime error23ms3832 KiB
11Runtime error25ms4520 KiB
12Runtime error30ms5808 KiB
13Runtime error43ms8444 KiB
14Runtime error50ms9852 KiB
15Runtime error52ms11088 KiB
subtask40/35
16Runtime error20ms3304 KiB
17Runtime error25ms4520 KiB
18Runtime error29ms6392 KiB
19Runtime error32ms7744 KiB
20Runtime error35ms6640 KiB
21Runtime error39ms10124 KiB
22Runtime error45ms11560 KiB
23Runtime error46ms12520 KiB
24Runtime error48ms9796 KiB
25Runtime error54ms15084 KiB