11790 | 2024-11-10 19:28:33 | M | Ludak Harca | python3 | Wrong answer 65/100 | 136ms | 13756 KiB |
from sys import stdin, stdout
N = int(input(""))
J = list(map(int, stdin.readline().split()))
position = 0
step = 0
rolls = []
for i in range(1, 7):
while position < N:
position += i
step += 1
if position < N:
position += J[position]
print(step, end=" ")
step = 0
position = 0
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2872 KiB | ||||
2 | Accepted | 14ms | 2872 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 16ms | 2860 KiB | ||||
4 | Accepted | 16ms | 3056 KiB | ||||
5 | Accepted | 17ms | 3112 KiB | ||||
6 | Accepted | 28ms | 3128 KiB | ||||
7 | Accepted | 136ms | 4876 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 17ms | 3128 KiB | ||||
9 | Accepted | 16ms | 3140 KiB | ||||
10 | Accepted | 18ms | 3636 KiB | ||||
11 | Accepted | 21ms | 4588 KiB | ||||
12 | Accepted | 26ms | 5736 KiB | ||||
13 | Accepted | 35ms | 8092 KiB | ||||
14 | Accepted | 41ms | 9588 KiB | ||||
15 | Accepted | 41ms | 10168 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 34ms | 3384 KiB | ||||
17 | Accepted | 20ms | 4496 KiB | ||||
18 | Wrong answer | 24ms | 6336 KiB | ||||
19 | Wrong answer | 28ms | 7116 KiB | ||||
20 | Accepted | 30ms | 6612 KiB | ||||
21 | Wrong answer | 35ms | 9832 KiB | ||||
22 | Wrong answer | 35ms | 10932 KiB | ||||
23 | Wrong answer | 37ms | 11628 KiB | ||||
24 | Accepted | 39ms | 9560 KiB | ||||
25 | Wrong answer | 46ms | 13756 KiB |