NC222427. [USACOOPEN2021B]AcowdemiaI
描述
输入描述
The first line of input contains N and L.The second line contains N space-separated integers
.
输出描述
The maximum h-index Bessie may achieve after writing the survey.
示例1
输入:
4 0 1 100 2 3
输出:
2
说明:
Bessie cannot cite any of her past papers. As mentioned above, the hh-index for (1,100,2,3)(1,100,2,3) is 22.示例2
输入:
4 1 1 100 2 3
输出:
3
说明:
If Bessie cites her third paper, then the citation counts become (1,100,3,3)(1,100,3,3). As mentioned above, the hh-index for these counts is 33.