-
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
-
aptive
adaptive control &simulink
- 2008-04-01 11:15:27下载
- 积分:1
-
matlabbuilder
matlab视频教程-仿真建模
详细说明如何建模
是一个程序类的(matlab video tutorial- Modeling and Simulation of a detailed account of how modeling is a procedural type of)
- 2008-06-27 22:13:31下载
- 积分:1
-
voting-algorithm
this is a voting algorithm MATLAB codes for fault tolerant systems. file consist of five m-files that fours of them runs from testmaj m-file. inxmaj m-file is a function for inexact majority algorithm, inxplu is a function for inexact plurality algorithm, wa is a function for weighted average algorithm and med is a function for med-value selector
- 2012-04-08 19:36:07下载
- 积分:1
-
matlab
Simulink仿真系统模块库,matlab中Simulink的使用方法,实例(Simulink system module library, matlab in Simulink using the method instance)
- 2014-04-29 16:29:17下载
- 积分:1
-
Mathuwave
Plot the Mathieu Beam and its phase and a cut in the graph. Put all archives in a same folder and run mthuwave file.
- 2020-11-15 12:09:41下载
- 积分:1
-
shuzituxiangchuli
数字图象处理程序,有原图,可以直接运行,方便初学者对数字图像处理的入门练习(Digital image processing procedures, artwork can be run directly to facilitate beginners to practice the entry of digital image processing)
- 2012-04-20 19:01:27下载
- 积分:1
-
adaptive-Filtering
自适应滤波法做预测,并对预测结果,相对误差进行数据可视化,预测结果很准确(Adaptive filter prediction and forecast results, the relative error for data visualization, very accurate prediction results)
- 2013-04-27 18:33:15下载
- 积分:1
-
Introduction-to-Fuzzy-Logic-using-MATLAB
Fuzzy Logic, at present is a hot topic, among academicians as well various programmers. This book is provided to give a broad, in-depth overview of the field of Fuzzy Logic. The basic principles of Fuzzy Logic are discussed in detail with various solved examples. The different approaches and solutions to the problems given in the book are well balanced and pertinent to the Fuzzy Logic research projects. The applications of Fuzzy Logic are also dealt to make the readers understand the concept of Fuzzy Logic. The solutions to the problems are programmed using MATLAB 6.0 and the simulated results are given. The MATLAB Fuzzy Logic toolbox is provided for easy reference
- 2013-12-09 22:50:10下载
- 积分:1
-
201303
Matlab GUI 图形界面编程设计,界面规划设计(Matlab GUI programming graphical interface design, interface design planning)
- 2015-04-15 19:27:44下载
- 积分:1