题解 | 破壁

破壁

https://www.nowcoder.com/practice/91f71bf2c68941dc94c8881ec8eeefb4

n, x, y = map(int,input().split())
A = list(map(int,input().split()))
if x > y:
    print(n)
else:
    cnt = 0
    for e in A:
        if e <= x:
            cnt += 1
    print((cnt+1)//2)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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