# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161851 | boolodifjenula | Hindeks (COCI17_hindeks) | Cpython 3 | 1079 ms | 60448 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
n=int(input())
p=0
L=list(map(int,input().split()))
i=0
while 1:
i+=1
m=0
for j in range(n):
if L[j]>=i:
m+=1
if m==i:
p=i
break
if p<i:
print(p)
break
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |