-
personNum
今年计算机学院研究生入学复试分多个小组。现在老师需要知道每组复试同学中男生和女生的人数。请你编写程序分别统计出男女生的总人数。
Input
输入的第一行是一个数t(0 < t < 10),表示有t组测试用例。
对于每组输入数据有两行,第一行是一个正整数n(1 < n < 1000),表示参加该组复试的总人数。接下来一行有n个整数(取值为0或1),0代表男生,1代表女生,整数间由一个空格隔开。
Output
对于每组测试用例,输出一行,由两个数组成,用一个空格隔开,分别表示男生和女生的总人数。
Sample Input
2
2
1 0
7
0 1 0 0 1 1 0
Sample Output
1 1
4 3
(Statistics person)
- 2014-12-31 10:33:15下载
- 积分:1
-
Moody_Diagram_f_Est
Friction identification
Estimate the friction factor Moody Diagram
- 2015-03-11 01:31:02下载
- 积分:1
-
procedure_SVD
可以实现矩阵的奇异值分解,当矩阵较大时分解速度较慢,仅供研究矩阵奇异值分解的同仁参考。(This program can realize the singular value decomposition of a rectangular matrix. When the matrix size is large, the decomposition speed is slow. This program is just a reference for those who are interested in singular value decomposition of a matrix.)
- 2020-08-13 15:48:30下载
- 积分:1
-
yuchuli
振动信号预处理,主要为五点三次平滑法和平均法(Vibration signal pre-processing, mainly for the 5.3 second smoothing method and average method)
- 2010-02-02 14:26:28下载
- 积分:1
-
WaveLength2010-05
通过迭代计算方法计算波浪波长的程序,可以计算不同周期波浪由深水传向浅水,不同深度波长的变化。(caculate the wavelength ,you should input the depth and period)
- 2011-05-13 09:52:42下载
- 积分:1
-
model1500
Simulink model of a 1.5 MW wind turbine with direct-driven permanent magnet generator
- 2011-07-30 14:50:17下载
- 积分:1
-
egprs2
EGPRS Phase 2 Uplink Level B Simulation
- 2010-11-10 08:00:05下载
- 积分:1
-
matlab_ch1
good matlab textbook, very good!!!
- 2012-06-16 00:40:28下载
- 积分:1
-
histogram_matching
histogram matching for image enhancement
- 2011-10-10 01:36:40下载
- 积分:1
-
polygon_contains_point_2d
for calculating point in polygon problem
- 2009-12-08 16:11:22下载
- 积分:1