登录
首页 » Java » personNum

personNum

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

  • kongzhililun
    T形桥接网络是一种常用的滤波网络中,用MatLab求其状态空间模型,画出该电路的零——极点图。(T-shaped bridge network is a kind of filter commonly used network, use MatLab for its state-space model, draw the circuit zero- Pole map.)
    2008-12-24 15:51:24下载
    积分:1
  • screw_matlab
    关于旋量理论的Matlab描述和相应的源码实例,适用于多体运动的运动学分析和控制的研究(on Screw Theory of Matlab description and the corresponding source code examples, apply to multi-body kinematics analysis of the movement and control of)
    2006-12-12 09:13:51下载
    积分:1
  • power_system_flow_Calculation
    说明:  电力系统潮流计算程序,运行环境matla不,请下载。(Power flow calculation program, operating environment matla not, please download.)
    2008-11-04 21:46:51下载
    积分:1
  • quaternion
    Blind Signal Processing (BSP) is now one of the hottest and most exciting topics in the fields of neural computation, advanced statistics, and signal processing with solid theoretical foundations and many potential applications.
    2014-09-23 07:06:34下载
    积分:1
  • OFDM-Communication-system
    基于matlab 的ofdm 通信系统的建模仿真。包括 为有效传输所需的各种技术的实现!(Based on the matlab ofdm communication system modeling and simulation. Including the effective transfer of technologies needed to achieve!)
    2011-10-02 15:08:30下载
    积分:1
  • AMDF-speech
    基于语音信号处理的MATLAB平均幅度差函数,比自相关函数计算量要少。(Based on the average amplitude of the speech signal processing functions, less than the autocorrelation function computation.)
    2012-10-26 10:05:15下载
    积分:1
  • hvdc_vsc_4_terminals
    电压源换流器型高压直流输电VSC-HVDC( Voltage Source Converter HVDC) 技术是当今世界电力电子技术应用领域的制高点.能有效提高电能质量并确保电网安全稳定运行,是智能电网发展中具有代表性的 关键技术之一. (VSC-HVDC(Voltage Source Converter HVDC) )
    2015-04-09 14:43:08下载
    积分:1
  • 00971907
    Direct torque control based neural netwoek
    2010-12-16 20:16:25下载
    积分:1
  • zy
    说明:  最优制导律攻击机动目标弹道仿真,matlab编写。(Optimal guidance law for maneuvering target trajectory simulation attacks, matlab prepared.)
    2008-11-07 18:35:26下载
    积分:1
  • Matlab
    完整细致的matlab教学课件,详解matlab的入手与深入(Matlab a complete and detailed courseware, Xiang Jie matlab' s start with the depth)
    2010-06-10 10:17:43下载
    积分:1
  • 696518资源总数
  • 104432会员总数
  • 16今日下载