23272023-01-10 15:03:48neszbalLudak Harcapython3Wrong answer 0/100101ms36808 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=" ")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms11608 KiB
2Wrong answer17ms11888 KiB
subtask20/25
3Wrong answer17ms11824 KiB
4Wrong answer17ms12064 KiB
5Wrong answer17ms11988 KiB
6Wrong answer26ms12736 KiB
7Wrong answer101ms15908 KiB
subtask30/40
8Wrong answer17ms12832 KiB
9Wrong answer17ms13404 KiB
10Wrong answer18ms14280 KiB
11Wrong answer20ms15952 KiB
12Wrong answer27ms18724 KiB
13Wrong answer35ms23184 KiB
14Wrong answer39ms26380 KiB
15Wrong answer43ms28040 KiB
subtask40/35
16Wrong answer29ms14188 KiB
17Wrong answer21ms16452 KiB
18Wrong answer25ms20140 KiB
19Wrong answer28ms22564 KiB
20Wrong answer29ms21284 KiB
21Wrong answer32ms27312 KiB
22Wrong answer37ms30368 KiB
23Wrong answer37ms31820 KiB
24Wrong answer41ms27180 KiB
25Wrong answer46ms36808 KiB