题解 | 蛇鸟

蛇鸟

https://www.nowcoder.com/practice/76babf194ed64906895fc3ece56e8a9f

n,l=map(int,input().split())
ls=list(map(int,input().split()))
coun=0
ls.sort()
for i in ls:
    if l>=i:
        l+=1
print(l)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务