Problem C: 统计不及格人数
2016-03-18 21:20
302 查看
128 MB
Submit: 553 Solved: 432
[Submit][Status][Web
Board]
Description
设一维数组存放了n(<100)个学生的成绩,编写函数求不及格的人数部分代码已给定如下,只需要提交缺失的代码。
#include <iostream>
using namespace std;
int main()
{
float score[100];
int i,num=0,n;
int failcnt(float score[],int n);
cin>>n;
for(i=0; i<n; i++)
{
cin>>score[i];
}
num=failcnt(score,n);
cout<<num<<endl;
return 0;
}
Input
n和n个学生的成绩Output
不及格的人数Sample Input
10 90 85 50 45 70 76 92 69 83 89
Sample Output
2
HINT
[Submit][Status][WebBoard]
한국어
中文
فارسی English
ไทย
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2014
HUSTOJ TEAM
GPL2.0 2003-2014
HUSTOJ Project TEAM
相关文章推荐
- python数据类型
- 图数据库Neo4j介绍
- java实现oracle数据库基本操作
- JavaScript:Object.prototype.toString进行数据类型判定
- 205. Isomorphic Strings
- Apache Kafka编程入门指南:Producer
- 读《java夜未眠》
- 5. Java引用与C++区别
- Android好用的okhttp网络封装(get,post,上传,下载)
- 【C++】《C++标准程序库》小结七章-迭代器
- 宏和函数的比较(C/C++)
- 190. Reverse Bits
- Struts2 注解模式(范例)
- PowerShell Studio 2016
- Problem E: 指针引出奇数因子
- python变量
- C#解leetcode 238. Product of Array Except Self
- 223. Rectangle Area
- 【暴力】HDU4858项目管理
- 219. Contains Duplicate II