-
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
-
ploteye
MATLAB 眼图的实现。ploteye函数的使用即通过QPSK的调制解调的仿真以实现对函数的使用说明。(MATLAB implementation of the eye diagram. ploteye function through the use of QPSK modulation and demodulation of the simulation in order to achieve the function instructions.)
- 2010-05-28 10:28:50下载
- 积分:1
-
youhuasuanfa
经典的模遗传算法的合集,是我在参加数学模型大赛时收集的,比较有用(classic mode GA universe, I was participating in the Mathematical Model Competition collected, more useful)
- 2007-05-30 09:33:10下载
- 积分:1
-
Gambit读取 1维网格的Matlab程序
ReadMeshFromGambit1D
从网格划分软件Gambit读取1维网格的Matlab程序,来自《节点间断迦辽金方法》一书(Matlab program read from the meshing software Gambit one-dimensional grid, from the node discontinuous Galerkin method, " a book)
- 2012-07-02 22:29:44下载
- 积分:1
-
Matlab
matlab的教学案例分析,详细介绍了matlab的一些功能(matlab teaching case studies, detailing some of the features matlab)
- 2013-09-30 11:13:29下载
- 积分:1
-
CUCKOO-
CUCKOO SEARCH OPTIMIZATION
- 2016-01-26 05:35:07下载
- 积分:1
-
qietiu
毕业设计有用,供做算法研究人员参考,小波包分析提取振动信号中的特征频率。( Graduation useful Algorithm for researchers to do reference, Wavelet packet analysis to extract vibration signal characteristic frequency.)
- 2016-08-29 17:21:41下载
- 积分:1
-
spectrum_estimation
包括多种经典频谱估计程序,Matlab平台实现(Classical spectrum estimation procedures, Matlab platform)
- 2009-10-09 09:10:59下载
- 积分:1
-
The-matlab--Classic-Tutorials
说明: 详细讲述matlab的使用方法和基本命令,包括如何建立M文件等等(Matlab detail the use and basic commands, including how to create the file, and so M)
- 2011-04-07 23:20:27下载
- 积分:1
-
NSGAII
通过Matlab,实现NEGAⅡ,对于多目标优化,并对研究问题SCH,进行了相关实验,效果不错,可以通过增加种群数、个体长度、以及迭代次数,来提高解的质量(The Matlab, the NEGA II, for the multi-objective optimization, and research questions SCH, the relevant experiments, good results, by increasing the number of population, individual length, and number of iterations to improve the quality of the solution)
- 2012-05-27 15:14:02下载
- 积分:1