登录
首页 » Java » personNum

personNum

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

  • Czuhexinpusenqiujifen
    C组合辛普森求积分 源程序 MATLAB(C portfolio Simpson integral source for MATLAB)
    2008-07-02 13:06:30下载
    积分:1
  • segy(matlab)
    说明:  基于matlab研究地震勘探数据处理的源代码 ,matlab相信大家都知道,功能相当强大。很容易上手(Research based on seismic data processing matlab source code, matlab I believe we all know, quite powerful. Very easy to use)
    2011-04-11 16:50:49下载
    积分:1
  • si
    说明:  用递推的极大似然法对系统辨识,对具有随机噪声的二阶系统的模型辨识(Using the recursive maximum likelihood method of system identification, random noise with the second-order system model identification)
    2008-03-14 19:08:17下载
    积分:1
  • CART
    决策树算法的CART算法,用MATLAB编写,能有,不错的。(CART decision tree algorithm algorithm, using MATLAB to prepare, to have, good.)
    2021-04-09 20:19:00下载
    积分:1
  • Computer-Vision-Using-Local-Binary-Patterns
    The local binary pattern (LBP) is a simple yet very efficient operator which labels the pixels of an image by thresholding the neighborhood of each pixel and considers the result as a binary number. Perhaps the most important property of the LBP operator in real-world applications is its invariance against monotonic gray level changes caused, for example, by illumination variations. Another equally important is its computational simplicity, which makes it possible to analyze images in challenging real-time settings. LBP is also very flexible: it can be easily adapted to different types of problems and used together with other image descriptors
    2013-09-19 10:04:03下载
    积分:1
  • templateMatcher
    matlab下的图像模板匹配算法源码,希望对大家有所帮助(matlab image under the template matching algorithm source code, I hope all of you to help)
    2008-01-19 21:41:05下载
    积分:1
  • Empirical1
    empirical modelling for processs control with deat time
    2010-11-09 10:36:08下载
    积分:1
  • Queens
    本程序用Matlab实现了八皇后问题的所有解,用到了递归的编程思想(The procedures used Matlab eight queens problem all the solutions use recursive programming ideas)
    2013-03-16 23:46:42下载
    积分:1
  • MVDR
    形成MVDR波束,并且计算数字序列的自相关矩阵(MVDR beam formation)
    2011-06-02 10:50:37下载
    积分:1
  • surfcv
    Code for plotting bessel functions
    2013-10-29 14:15:39下载
    积分:1
  • 696518资源总数
  • 104228会员总数
  • 45今日下载