-
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
-
NEWTONCOTES
一个实用的在数值计算中计算积分的Newtoncotes方法的m文件,包含n从1到7的常用情况(A practical calculation in numerical methods of integration Newtoncotes m file that contains the n from 1 to 7 common situation)
- 2010-10-11 22:45:07下载
- 积分:1
-
MAT
如何从CSV、文本文件中读取记录波形 并返回波形数据
逐行读取文件内容 (How CSV, text file read and returns the waveform data recorded waveforms to read file contents line by line)
- 2011-08-17 10:11:16下载
- 积分:1
-
matlab_AM
通信原理上机实验_基于MATLAB的模拟幅度调制解调系统_AM调制解调系统程序代码(Machine on communication theory based on MATLAB simulation experiments _ amplitude modulation and demodulation system _AM code modulation and demodulation system)
- 2014-01-02 17:30:28下载
- 积分:1
-
matlab
Matlab教训,PPT格式,从入门到精通。(Matlab lessons, PPT format, from entry to the master.)
- 2008-01-16 21:13:13下载
- 积分:1
-
Motion_blur_restore
两篇关于运动模糊参数估计和复原的文章,非常经典的文章,基本概括了参数估计的主流方法,(two paper about restore Motion blur,which is very comprehensive )
- 2010-11-08 22:19:20下载
- 积分:1
-
MATLAB
说明: 一是讲述MATLAB 正常运行所必须具备的基础条件;二是简明系统
地介绍高度集成的Desktop 操作桌面的功能和使用方法。(One is about the normal functioning of MATLAB must have the basic conditions Second concise introduction to a highly integrated system Desktop operating desktop features and applications.)
- 2010-04-29 17:39:59下载
- 积分:1
-
matlab
关于matlab的一本不错电子书,高级图形,图形与声音,以及matlab与其他语言的混合使用(On matlab' s a good e-book, advanced graphics, graphic and sound, and matlab mixed with other languages)
- 2010-06-28 23:25:08下载
- 积分:1
-
SolveOMP
Orthogonal Matching Pursuit
- 2011-02-03 03:19:04下载
- 积分:1
-
Linear
基于小波神经网络的横摇运动和预测的程序matlab程序(Based on wavelet neural network and prediction of roll motion matlab process procedures)
- 2011-05-07 13:51:52下载
- 积分:1