2327 | 2023-01-10 15:03:48 | neszbal | Ludak Harca | python3 | Wrong answer 0/100 | 101ms | 36808 KiB |
N = int(input())
hely = 0
szamlalo = 0
tabla = list(map(int, input().split()))
for i in range(1, 6):
szamlalo = 0
hely = 0
while hely < N:
szamlalo += 1
hely += i
try:
while tabla[hely] != 0:
hely += tabla[hely]
except:
break
print(szamlalo, end=" ")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 17ms | 11608 KiB | ||||
2 | Wrong answer | 17ms | 11888 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Wrong answer | 17ms | 11824 KiB | ||||
4 | Wrong answer | 17ms | 12064 KiB | ||||
5 | Wrong answer | 17ms | 11988 KiB | ||||
6 | Wrong answer | 26ms | 12736 KiB | ||||
7 | Wrong answer | 101ms | 15908 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Wrong answer | 17ms | 12832 KiB | ||||
9 | Wrong answer | 17ms | 13404 KiB | ||||
10 | Wrong answer | 18ms | 14280 KiB | ||||
11 | Wrong answer | 20ms | 15952 KiB | ||||
12 | Wrong answer | 27ms | 18724 KiB | ||||
13 | Wrong answer | 35ms | 23184 KiB | ||||
14 | Wrong answer | 39ms | 26380 KiB | ||||
15 | Wrong answer | 43ms | 28040 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Wrong answer | 29ms | 14188 KiB | ||||
17 | Wrong answer | 21ms | 16452 KiB | ||||
18 | Wrong answer | 25ms | 20140 KiB | ||||
19 | Wrong answer | 28ms | 22564 KiB | ||||
20 | Wrong answer | 29ms | 21284 KiB | ||||
21 | Wrong answer | 32ms | 27312 KiB | ||||
22 | Wrong answer | 37ms | 30368 KiB | ||||
23 | Wrong answer | 37ms | 31820 KiB | ||||
24 | Wrong answer | 41ms | 27180 KiB | ||||
25 | Wrong answer | 46ms | 36808 KiB |