登录
首页 » Java » personNum

personNum

于 2014-12-31 发布 文件大小:7KB
0 74
下载积分: 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 个回复

  • adaptivecontrol
    包括自适应控制中的MIT以及李雅普诺夫控制方法的简单编程示例(Simple programming examples include adaptive control of MIT and Lyapunov control method)
    2020-11-22 15:19:34下载
    积分:1
  • DPAad
    这是关于数字预失真的仿真程序,应用LMS急降方法实现系数更新,对失真有很好的效果(This is the digital predistortion simulation program, the drop of the LMS coefficient update method implementation, have a good effect on the distortion)
    2016-07-14 20:45:57下载
    积分:1
  • merginginformation
    使用基于知识的方法把多种复杂的信息进行融合,利用web语义技术,数据融合系统等多种方法进行信息融合(The use of knowledge-based approach to a variety of complex information integration, the use of semantic web technology, data fusion system, a variety of methods of information fusion)
    2010-03-09 16:14:43下载
    积分:1
  • calcul
    Induction machine fault detection
    2015-03-03 14:31:39下载
    积分:1
  • AR
    说明:  AR自回归线性滤波器法模拟风速时程曲线,MATLAB(AR autoregressive linear filter method is used to simulate wind speed time history curve, MATLAB)
    2018-01-19 16:20:45下载
    积分:1
  • main_peaks
    bee algorythm sample
    2010-08-21 04:16:02下载
    积分:1
  • serialCOM
    基于matlab的串口通信界面程序。程序中基于MatlabGUI编写了串口上位机界面,并且生成了.exe可执行文件(Matlab-based serial communication interface program. MatlabGUI based program written serial PC interface, and generates a. Exe executable file)
    2013-07-09 19:52:13下载
    积分:1
  • Matlab-GUI_example
    此资料中包含5个Matlab GUI 小程序,分别是信号分析、不同图形绘制、极点图绘制、时域频域信号绘制、滑动数字显示。(This data contains five Matlab GUI applets, which are signal analysis, different graphics rendering, pole drawing, draw time-domain frequency domain signal, sliding digital display.)
    2013-12-25 17:48:18下载
    积分:1
  • PosVelToKepler.m
    Compute orbit keplerian elements, from satellite instantaneous position and velocity
    2014-02-13 17:00:20下载
    积分:1
  • EMD
    说明:  基于MATLAB对EMD算法分解的例子,学习希尔伯特-黄变换的可以参考学习(Based on the example of EMD algorithm decomposition in MATLAB, learning Hilbert-Huang transform can be referred to.)
    2020-06-19 18:00:01下载
    积分:1
  • 696524资源总数
  • 103838会员总数
  • 43今日下载