土拨鼠,上灯台
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
故事背景
“土拨鼠,上灯台,偷油吃,下不来……”这是小盆友们最熟悉的歌谣。今天,n只土拨鼠真要去上灯台。
题目描述
为了防止土拨鼠上灯台时被猫发现(不要问我为什么不要被猫发现,因为它叫土拨“鼠”),只有体型小于k的土拨鼠才能不被猫发现。请你编写一个程序,判断n只土拨鼠中有几只能顺利的上灯台。
输入
两行。第一行为整数n(0<n<101)和k(4<k<21),表示n只土拨鼠和不让猫发现的最大的k体型。第二行为n个整数,表示每只土拨鼠的体型(1~100)。
输出
一个整数m,表示有几只土拨鼠能够上灯台,没有输出-1。
样例
5 10
12 13 6 9 10
3
大明
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 38
- Start at
- 2025-2-11 16:00
- End at
- 2025-2-28 8:00
- Duration
- 400 hour(s)
- Host
- Partic.
- 7