111202024-07-07 11:31:08probaLudak Harcapython3Wrong answer 0/10056ms14444 KiB
# ludak

n = int(input())
tabla = [int(i) for i in input().split(' ')]
s = ''
for i in range(1, 7):
    p, lep = 0, 1
    try:
        while p+i < n:
            p += i+tabla[p+i]
            lep += 1
    except:
        pass
    
    s += str(lep)+' '*(i != 6)
print(s)

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Wrong answer17ms2920 KiB
subtask20/25
3Runtime error18ms2916 KiB
4Runtime error17ms2952 KiB
5Runtime error18ms2964 KiB
6Runtime error20ms3300 KiB
7Runtime error39ms4924 KiB
subtask30/40
8Runtime error18ms2916 KiB
9Runtime error18ms3172 KiB
10Runtime error21ms3720 KiB
11Runtime error25ms4392 KiB
12Runtime error29ms5756 KiB
13Runtime error41ms8144 KiB
14Runtime error48ms9412 KiB
15Runtime error50ms10604 KiB
subtask40/35
16Runtime error21ms3300 KiB
17Runtime error24ms4392 KiB
18Runtime error28ms6236 KiB
19Runtime error30ms7340 KiB
20Runtime error35ms6632 KiB
21Runtime error37ms9860 KiB
22Runtime error45ms11316 KiB
23Runtime error48ms12004 KiB
24Runtime error48ms9412 KiB
25Runtime error56ms14444 KiB