Submission #71506826


Source Code Expand

N=int(input())
A=[int(c)for c in input().split()]
X=A[0]-1
i=1
while X>0 and i<len(A):
  if X<A[i]:
    X=A[i]
  X-=1
  i+=1
print(i)

Submission Info

Submission Time
Task C - Domino
User Omanju
Language Python (CPython 3.13.7)
Score 300
Code Size 142 Byte
Status AC
Exec Time 158 ms
Memory 59888 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All min.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
min.txt AC 9 ms 9152 KiB
random_01.txt AC 143 ms 59772 KiB
random_02.txt AC 60 ms 27684 KiB
random_03.txt AC 158 ms 59852 KiB
random_04.txt AC 33 ms 18920 KiB
random_05.txt AC 102 ms 59120 KiB
random_06.txt AC 72 ms 56656 KiB
random_07.txt AC 82 ms 57900 KiB
random_08.txt AC 66 ms 38692 KiB
random_09.txt AC 94 ms 59632 KiB
random_10.txt AC 97 ms 46260 KiB
random_11.txt AC 132 ms 59732 KiB
random_12.txt AC 29 ms 23000 KiB
random_13.txt AC 39 ms 18732 KiB
random_14.txt AC 149 ms 59844 KiB
random_15.txt AC 131 ms 59840 KiB
random_16.txt AC 133 ms 59888 KiB
sample_01.txt AC 10 ms 9264 KiB
sample_02.txt AC 10 ms 9080 KiB
sample_03.txt AC 9 ms 9264 KiB