1421 问题 E: First Blood

时间限制: 1s 内存限制: 128MB 提交: 229 解决: 100
题目描述

We always call the first kill in the Dota First Blood, and in the ACM-ICPC, we also call the first AC First Blood.
We all like First Blood, but it need some luck and care.
NOW, COME ON!!! TYPE ON YOUR KEYBOARD!!!! Maybe the First Blood is YOURS!!!

输入

There are multiple test cases.
Each test case begins with a line of two integers n and m (0<n<=1000,0<m<2147483648).
The next line consists of n integers a[1] ... a[n], and for i between 1 and n, 0<a[i]<2147483648.
A test case with n=0 terminates the input and this test case is not to be processed.

输出

Your task is to count how many numbers in those n integers that not smaller than m, and output the number.

样例输入
10 4
1 2 3 4 5 6 7 8 9 0
0
样例输出
6
提示
零基础同学可以先学习视频课程,包含C/C++、Python、百练、蓝桥杯辅导、算法数据结构等课程,提供视频讲解以及配套习题,还有老师答疑,点击这里了解课程详情

比赛公告

 大家加油哦