N=int(input())
a=list(map(int, input().split()))
a.sort()
res=0
cnt=0
for i in range(N):
cnt+=1
if cnt>=a[i]:
res+=1
cnt=0
print(res)'이코테' 카테고리의 다른 글
| 6)문자열 뒤집기 (0) | 2021.11.29 |
|---|---|
| 5)곱하기 혹은 더하기 (0) | 2021.11.29 |
| 3)1이 될 때까지 (0) | 2021.11.29 |
| 2)숫자 카드 게임 (0) | 2021.11.29 |
| 1)큰 수의 법칙 (0) | 2021.11.29 |