登录
首页 » Java » personNum

personNum

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

  • emd_blx
    这是一种包络线的实例特殊情况emd_blX(This is an example of envelope special circumstances emd_blx)
    2009-09-21 10:37:39下载
    积分:1
  • 3
    说明:  输入一个整数,求它的各位数字之和及位数. 例如234的各位数之和是9,位数是3。(inport a number putout anumber aaaaaaaa)
    2010-09-02 09:56:12下载
    积分:1
  • objectTracking.m
    kalman filter for traking a moving object
    2009-05-16 14:30:53下载
    积分:1
  • 222
    比较经典格拉姆施密特QR正交分解的matlab源程序(Comparison of the classical Gram Schmidt QR orthogonal decomposition matlab source)
    2010-12-15 17:22:35下载
    积分:1
  • c_value
    说明:  提取图像的颜色特征,首先将图像颜色映射到指定的8个颜色,然后利用自相关和互相关计算得到图像的特征向量,并从原数据库中算出利用此方法检索图像的正确率,并将检索结果好的图像显示到指定文件夹中。(Extract image s color characteristics.First, the image color map to the specified eight colors, then use the auto-correlation and cross-correlation calculation of image feature vectors.and Calculated from the original database, retrieve the images using this method, the correct rate, and a good image display search results to a specified folder.)
    2010-03-18 14:22:33下载
    积分:1
  • XITONG1
    太阳能的最大功率追踪模型。采用MATLAB建模仿真。(Solar maximum power point tracking model. Using MATLAB modeling and simulation.)
    2020-11-26 18:19:31下载
    积分:1
  • m471
    单变量控制 神经网络控制 PID matlab仿真(Single-variable control neural network control PID matlab simulation)
    2012-05-27 10:43:04下载
    积分:1
  • FirstDataAllPicture_OnlyPicture
    提取大量txt文本中的相同序号的数据,保存至数组,作为纵坐标画出图形。(Txt text to extract a large number of the same data, save it to an array, as ordinate drawn graphics.)
    2014-02-13 14:24:22下载
    积分:1
  • NEWTON
    利用牛顿迭代法解非线性方程,这是其matlab程序(Using Newton iteration solution of nonlinear equations, which are its matlab program)
    2009-03-06 17:19:35下载
    积分:1
  • diff
    用MATLAB编写的一个通过积分运算进行衍射计算的小程序。(MATLAB prepared an operation conducted by integral calculation of the diffraction small programs.)
    2006-06-08 00:05:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载