| 题目链接 | 难度等级 | 完成状态 | 完成分数 | 最后编辑时间 | 失误原因(初次提交分数) |
|---|---|---|---|---|---|
| Soapbear and Honey | ★☆☆☆☆ | 答案正确 | 100 | 2014-10-30 18:51:40 | 输出格式(0) |
在n个数中求不大于m的数的个数。
果然是送分题。 但是 ……第一次交没换行
| 1521.cpp代码已折叠
展开折叠内容
|
|---|
#include<cstdio>
int main()
{
int n,N,Hx,Hi,Ans=0;
scanf("%d",&n);
while(n--)
{
Ans=0;
scanf("%d%d",&N,&Hx);
for(int i=1;i<=N;++i)
{
scanf("%d",&Hi);
Ans+=(Hi<=Hx);
}
printf("%d",Ans);
}
return 0;
}
|