98322024-03-09 20:02:47zhuyiLudak Harcapython3Wrong answer 65/100146ms36128 KiB
n = int(input())
mezok = input().strip().split()
mezok = list(map(int, mezok))
o = []
for i in range(1,7):
    current_field = 0
    moves = 0
    while current_field<n:
        current_field += i
        if current_field < n:
            current_field += mezok[current_field]
        moves += 1
    
    o.append(moves)
o = map(str, o)
o1 = ""
for k in o:
    o1 += k + " " 
print(o1)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted18ms11176 KiB
2Accepted17ms11392 KiB
subtask225/25
3Accepted17ms11332 KiB
4Accepted17ms11656 KiB
5Accepted19ms11924 KiB
6Accepted32ms12532 KiB
7Accepted146ms16184 KiB
subtask340/40
8Accepted18ms12268 KiB
9Accepted18ms12888 KiB
10Accepted20ms14316 KiB
11Accepted23ms15824 KiB
12Accepted28ms19508 KiB
13Accepted35ms23464 KiB
14Accepted41ms27236 KiB
15Accepted46ms28764 KiB
subtask40/35
16Accepted37ms13572 KiB
17Accepted23ms16224 KiB
18Wrong answer27ms19812 KiB
19Wrong answer28ms21916 KiB
20Accepted32ms20812 KiB
21Wrong answer37ms27224 KiB
22Wrong answer39ms29704 KiB
23Wrong answer41ms32424 KiB
24Accepted43ms27684 KiB
25Wrong answer46ms36128 KiB