11789 | 2024-11-10 19:19:38 | M | Ludak Harca | python3 | Wrong answer 65/100 | 150ms | 13772 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(6):
while position < N:
position += i+1
if position < N:
position += J[position]
step += 1
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 | 14ms | 3096 KiB | ||||
4 | Accepted | 16ms | 2872 KiB | ||||
5 | Accepted | 17ms | 2876 KiB | ||||
6 | Accepted | 28ms | 3088 KiB | ||||
7 | Accepted | 150ms | 4936 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 17ms | 2872 KiB | ||||
9 | Accepted | 17ms | 3124 KiB | ||||
10 | Accepted | 17ms | 3632 KiB | ||||
11 | Accepted | 21ms | 4408 KiB | ||||
12 | Accepted | 27ms | 5892 KiB | ||||
13 | Accepted | 37ms | 8152 KiB | ||||
14 | Accepted | 41ms | 9456 KiB | ||||
15 | Accepted | 41ms | 10176 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 32ms | 3388 KiB | ||||
17 | Accepted | 21ms | 4508 KiB | ||||
18 | Wrong answer | 26ms | 6320 KiB | ||||
19 | Wrong answer | 27ms | 7240 KiB | ||||
20 | Accepted | 30ms | 6564 KiB | ||||
21 | Wrong answer | 35ms | 9696 KiB | ||||
22 | Wrong answer | 35ms | 10904 KiB | ||||
23 | Wrong answer | 37ms | 11664 KiB | ||||
24 | Accepted | 37ms | 9596 KiB | ||||
25 | Wrong answer | 46ms | 13772 KiB |