# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
23096 | model_code | Hindeks (COCI17_hindeks) | Cpython 3 | 412 ms | 46 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())
a = list(map(int, input().split()))
a.sort(reverse=True)
h = 0
while h < n and a[h] >= h + 1:
h += 1
print(h)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |