-
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
-
snake_demo
sdemo.m为主文件,界面文件在subf文件夹,snake算法在snke文件夹下,images文件下为测试图片。
此程序以界面的方式展示了Snake算法的分割效果,如果需要做批处理,需要对其改进。(Sdemo. M primarily file, interface file in subf folder, snake algorithm in snke folder, images file for test under the picture.
This program to the interface of the way to show the Snake algorithm of segmentation effect, if need to do a batch, needs to be improved.)
- 2011-12-29 21:48:09下载
- 积分:1
-
Drms1
可见光通信系统中单点光源的均方根时延扩展的仿真源代码(DRMS in vsible light communication)
- 2017-02-28 23:58:52下载
- 积分:1
-
master-and-be-Proficient-in-MATLAB
很好的matlab书籍,最好的是:书中的文本可以选择,对编程极为有利(Matlab good books, the best is: the text of the book to choose from, be extremely beneficial to the program)
- 2009-12-10 22:49:05下载
- 积分:1
-
jianyijisuanqi
一个简易计算器界面,采用matlab语言编写,共享资源(a simple calculator interface using Matlab language, sharing resources)
- 2007-03-06 22:28:17下载
- 积分:1
-
waveletnetwork.m
应用小波神经网络进行模式识别的MATLAB源程序(Wavelet neural network pattern recognition MATLAB source)
- 2015-03-19 20:18:54下载
- 积分:1
-
sampling-theorem-example
sampling theorem description
- 2011-05-28 20:39:50下载
- 积分:1
-
xiaobos2
用于基于matlab的小波分析(去噪,重构,低频高频分解),对小波的分析具有十分重要的作用。(Based on matlab wavelet analysis (denoising, refactoring, low frequency high frequency decomposition), and the wavelet analysis plays an important role.)
- 2014-11-03 15:45:21下载
- 积分:1
-
zhengguangguo-daima
同时有图像matlab的说明,运动捕捉系统的重新构建,更良好的解决了出现噪点的情况(very good)
- 2014-11-04 11:08:28下载
- 积分:1
-
Gate-Signals
This method usually increases the global contrast of many images, especially when the usable data of the image is represented by close contrast values. Through this adjustment, the intensities can be better distributed on the histogram. This allows for areas of lower local contrast to gain a higher contrast. Histogram equalization accomplishes this by effectively spreading out the most frequent intensity values.
- 2013-03-21 04:01:14下载
- 积分:1