-
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
-
temp
数学建模中的一种评价算法--基于topsis熵权评价法和改进的灰色预测模型代码,里面的内容根据自己的情况改。(An evaluation algorithm in mathematical modeling is based on the TOPSIS entropy weight evaluation method and improved grey prediction model code, and the contents are changed according to their own situation.)
- 2018-04-21 01:28:31下载
- 积分:1
-
Marr-Hildreth-edge-detector
Marr Hildreth Edge Detector
- 2013-11-25 00:52:58下载
- 积分:1
-
加随机噪声单边
说明: 这是实际加噪后的地震信号,可以直接采用用于实验的分析和处理(This is the actual noise after the seismic signal, can be used directly)
- 2020-05-04 18:03:02下载
- 积分:1
-
qubingyaogan
实现曲柄摇杆的3dmatlab实现 具有较好的实现形式(Crank and Rocker' s 3dmatlab to achieve better forms of realization)
- 2010-09-17 17:39:01下载
- 积分:1
-
MATLAB
Matlab软件中的FuzzyLogic工具箱在模糊控制系统仿真中的应用,有详细的讲解(Matlab software FuzzyLogic Toolbox fuzzy control system application, a detailed explanation)
- 2010-05-06 10:11:31下载
- 积分:1
-
dongliangjuyunengliang
运用微分方法画出2~3个周期卫星运行轨道并画出动量矩及能量的变化关系(Using differential method to draw two to three cycles of satellite orbit and draw variation of moment of momentum and energy)
- 2014-10-29 09:27:44下载
- 积分:1
-
adrc
关于adrc控制的源代码,需要的朋友可以瞧一瞧(About adrc control of the source code, you need a friend you can take a look)
- 2014-11-05 10:44:01下载
- 积分:1
-
cor_dakk
cross correlation of two sequences
- 2013-03-30 23:29:28下载
- 积分:1
-
SpectrumSensing-by-energy-detection
Spectrum Sensing by Energy Detection
- 2012-10-06 13:55:41下载
- 积分:1