-
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
-
1
说明: 小波信号去噪例子,默认阈值去噪,强制去噪和软阈值去噪三种方法(wavelate-wavedec)
- 2010-06-24 09:18:12下载
- 积分:1
-
mohitfinal2
dtc of pmsm using ann
- 2015-03-09 16:37:00下载
- 积分:1
-
simbasebandex_revise_bit
基带条件下QPSK误码率仿真,具有很大参考价值(Under the conditions of the baseband QPSK BER simulation, has great reference value)
- 2015-04-08 22:51:58下载
- 积分:1
-
EM
说明: 用于估计未知数据的EM算法,即最大期望算法,用到的地方很多,可用来做同步。(The data used to estimate the unknown EM algorithm, that is the maximum expectation algorithm, used in many places, can be used for synchronization.)
- 2010-08-05 16:20:21下载
- 积分:1
-
Matlab2009a_C_Sfunction
说明: 自己在编matlab C语言模块时的一些总结(Some of my experiences about matlab s C SFunction)
- 2010-04-19 16:25:10下载
- 积分:1
-
SEP
SEP: A Stable Election Protocol for clustered heterogeneous wireless sensor networks (SEP: A Stable Election Protocol for clustered heterogeneous wireless sensor networks
)
- 2012-04-30 22:00:35下载
- 积分:1
-
CS_OMP
matlab环境中OMP算法代码,很实用,本人多次使用过的。(failed to translate)
- 2012-03-06 23:10:24下载
- 积分:1
-
Sepic
Sepic buck boost converter closed loop
- 2012-06-01 18:27:06下载
- 积分:1
-
IPIX-
本文件提供了在线的雷达数据导入IPIX matlab算法,主要是用于验证目的,包括导入程序和IPIX雷达数据下载地址,做SAR和图像遥感的必备资料。(This document provides the online radar data import the IPIX matlab algorithm for authentication purposes, including import procedures and IPIX radar data download address, must do the SAR and images of remote sensing.)
- 2012-11-11 22:27:41下载
- 积分:1