登录
首页 » Java » personNum

personNum

于 2014-12-31 发布 文件大小:7KB
0 235
下载积分: 1 下载次数: 1

代码说明:

  今年计算机学院研究生入学复试分多个小组。现在老师需要知道每组复试同学中男生和女生的人数。请你编写程序分别统计出男女生的总人数。 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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • BasicPso
    几本粒子群程序。用MATLAB编写。可以更改成自己能用的程序。(Particle Swarm several procedures. Prepared using MATLAB. Can be used to change into their own procedures.)
    2008-12-09 14:06:09下载
    积分:1
  • zhijie4bitlsb
    基于LSB的直接4bit替换法,就是直接用秘密图像像素值的高4bit去替换载体图像像素值的低4bit。 (Direct 4bit substitution, that is, the direct use of the secret image pixel values of the high-4bit image pixel value to replace the carrier' s low 4bit.)
    2009-11-19 13:42:52下载
    积分:1
  • chap
    ex9_1 脉冲信号调制 ex9_2 载波10MHz,带宽2MHz的线性调频信号及其频谱图 ex9_3 产生7位巴克码编码的二相码 ex9_4 产生7位巴克码和线性调频的混合调制信号 ex9_5 瑞利分布实现程序 ex9_6 瑞利分布+杂波 ex9_7 相关对数正态分布杂波 ex9_8 相关weibull分布杂波 ex9_9 相干相关K分布杂波 ex9_10 线性调频信号的数字化正交解调 ex9_11 雷达脉冲压缩处理 ex9_12 二相编码信号的脉压处理 ex9_13 用FFT和FIR方法实现MTD处理 ex9_14 雷达的恒虚警处理(CFAR) ex9_15 比较相参积累和非相参积累(Two-phase pulse ex9_12 shrinking treatment coded signal processing using FFT and FIR ex9_13 MTD processing methods to achieve ex9_14 radar CFAR (CFAR) ex9_15 relatively coherent and non-coherent integration accumulation)
    2014-01-12 20:47:32下载
    积分:1
  • AGC
    互联电网AGC的鲁邦控制和传统PI控制simulink仿真对比(Lupin AGC of interconnected power system control and conventional PI control simulink simulation comparison)
    2021-04-18 09:28:52下载
    积分:1
  • numericalanalysis
    本工具包给出了数值分析这门课程中所涉及的所有问题所需程序。很不错(The kit gives the numerical analysis in this course all the issues involved in the necessary procedures. Very good)
    2010-11-24 10:10:10下载
    积分:1
  • matlabpower-flow-calculation
    说明:  用matlab软件计算电力系统的潮流,使电力系统运行可靠(Power systems using matlab software to calculate the trend, so that the power system is reliable, )
    2011-03-18 11:04:46下载
    积分:1
  • Matlab_ownlearn
    主要介绍matlab的相关内容 可以提供初学者自学用 (Introduces relevant content matlab beginners can provide self-learning)
    2010-09-01 16:17:25下载
    积分:1
  • xitongfangzhen(s-function)
    这是一个通信系统的仿真,是用SIMULINK的S-FUNCTION方式编写的,共有20个M文件,1个DOC文件,本系统的仿真设计到编码、调制、IFFT、上下变频、高斯信道建模、FFT、PAPR抑制、各种同步、解调和解码等模块,每个模块都用详细的代码和注释,并通过了系统性能的仿真验证了系统设计的可靠性,可以直接拿来仿真整个系统,也可来学习各个部分的设计。(This is a communication system simulation, is the S-FUNCTION SIMULINK approach to the preparation, a total of 20 M file, a DOC file, the system simulation design to coding, modulation, IFFT, and down conversion, Gaussian channel model , FFT, PAPR suppression, various synchronization, demodulation and decoding modules, each module with a detailed code and comments, and system performance through simulation and verification of the reliability of system design, simulation of the entire system can be directly used, also to learn the various parts of the design. )
    2010-12-02 15:27:50下载
    积分:1
  • offset_estim
    This function implies carrier and sampling frequency offset estimation
    2009-06-29 19:41:02下载
    积分:1
  • emd分解,通过emd分解重构信号实现降噪
    说明:  emd 分解能够有效地进行分解以及进行数据变成(hgvjhsbsjjknfjsnlknfklsflskklssslkfkslslkfnssfsnm n,m,)
    2021-03-30 09:29:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载