-
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
-
K_MEANS_v2.1
K MEANS VERSİ ON NEW CLASFİ CATİ ON
- 2013-12-08 17:02:11下载
- 积分:1
-
melfilter
meifilter倒谱系数滤波器,欢迎大家使用(it s melfilter, welcome to download)
- 2010-11-16 16:43:31下载
- 积分:1
-
matlab-Interpolation-fitting
matlab插值与拟合的m文件例程,并且,有PPT相关说明介绍(matlab interpolation and fitting routines m-files, and, with PPT-related note describes the)
- 2010-01-29 19:57:43下载
- 积分:1
-
chapter1
Review chapter about robotics
- 2014-02-01 08:37:00下载
- 积分:1
-
video_observe
一个matlab小程序,通过连续读取多幅图像创建一个视频,可以播放(a small procedure to read through a number of consecutive images to create a video playback)
- 2007-05-14 10:07:51下载
- 积分:1
-
algoritmos-de-ordenamiento
ALGORITH OF ORDERS IMPLEMENTED IN C++
- 2014-12-18 12:57:11下载
- 积分:1
-
mulStablePoint
本程序为[MATLAB语言常用算法程序集].(龚纯).清晰版书中求解非线性方程组的一种方法:不定点迭代法(This program is [MATLAB language commonly used algorithm for assembly] (Gong pure) clear version of the book method for solving nonlinear equations: fixed point iteration method)
- 2015-01-06 10:53:06下载
- 积分:1
-
AlgebraMATLA
英文书籍,主要介绍了线性代数和矩阵论的matlab编程,适合于理工科学生使用(this book is to present an introdction about the linear algebra for engineers with MATLA)
- 2015-03-12 20:41:57下载
- 积分:1
-
Outlook
KALMAN filter for linear time invariant estimation
- 2014-01-14 21:39:44下载
- 积分:1