11121 | 2024-07-07 11:33:34 | proba | Ludak Harca | python3 | Wrong answer 0/100 | 54ms | 14312 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+i < n:
p += i+tabla[p+i]
lep += 1
except:
pass
a += [lep]
print(" ".join(str(i) for i in a))
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 17ms | 2916 KiB | ||||
2 | Wrong answer | 17ms | 2916 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Runtime error | 17ms | 3176 KiB | ||||
4 | Runtime error | 17ms | 2948 KiB | ||||
5 | Runtime error | 17ms | 2972 KiB | ||||
6 | Runtime error | 19ms | 3208 KiB | ||||
7 | Runtime error | 39ms | 4812 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Runtime error | 17ms | 3104 KiB | ||||
9 | Runtime error | 18ms | 3300 KiB | ||||
10 | Runtime error | 21ms | 3684 KiB | ||||
11 | Runtime error | 25ms | 4432 KiB | ||||
12 | Runtime error | 30ms | 5976 KiB | ||||
13 | Runtime error | 41ms | 7980 KiB | ||||
14 | Runtime error | 46ms | 9540 KiB | ||||
15 | Runtime error | 50ms | 10604 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Runtime error | 20ms | 3300 KiB | ||||
17 | Runtime error | 25ms | 4432 KiB | ||||
18 | Runtime error | 27ms | 6376 KiB | ||||
19 | Runtime error | 32ms | 7372 KiB | ||||
20 | Runtime error | 37ms | 6636 KiB | ||||
21 | Runtime error | 39ms | 9716 KiB | ||||
22 | Runtime error | 45ms | 11192 KiB | ||||
23 | Runtime error | 45ms | 11984 KiB | ||||
24 | Runtime error | 48ms | 9540 KiB | ||||
25 | Runtime error | 54ms | 14312 KiB |