Submission #23096

#TimeUsernameProblemLanguageResultExecution timeMemory
23096model_codeHindeks (COCI17_hindeks)Cpython 3
45 / 50
412 ms46 KiB
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 timeMemoryGrader output
Fetching results...