98302024-03-09 19:57:20zhuyiLudak Harcapython3Wrong answer 0/100157ms40464 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)
    print(moves)
print(o)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms11136 KiB
2Wrong answer18ms11244 KiB
subtask20/25
3Wrong answer17ms11524 KiB
4Wrong answer18ms11740 KiB
5Wrong answer18ms12260 KiB
6Wrong answer30ms12752 KiB
7Wrong answer157ms16432 KiB
subtask30/40
8Wrong answer18ms12544 KiB
9Wrong answer18ms13648 KiB
10Wrong answer20ms14668 KiB
11Wrong answer23ms16260 KiB
12Wrong answer28ms19916 KiB
13Wrong answer37ms24008 KiB
14Wrong answer41ms28136 KiB
15Wrong answer43ms29912 KiB
subtask40/35
16Wrong answer39ms15408 KiB
17Wrong answer24ms17928 KiB
18Wrong answer26ms21928 KiB
19Wrong answer28ms24072 KiB
20Wrong answer32ms22792 KiB
21Wrong answer35ms29192 KiB
22Wrong answer39ms32652 KiB
23Wrong answer43ms36032 KiB
24Wrong answer43ms30968 KiB
25Wrong answer48ms40464 KiB