登录
首页 » Java » personNum

personNum

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

  • embed.m.tar
    this is a file for embedding a messge in an image
    2010-06-23 21:38:47下载
    积分:1
  • projectivegemotriy
    射影几何的经典书籍,是学习摄像机标定和自标定必须掌握的理论基础(Projective geometry of the classic book, is to learn camera calibration and self-calibration must master the theoretical basis)
    2010-07-12 16:02:06下载
    积分:1
  • moving_target_imaging2
    旋转点目标的SAR成像算法。分析了旋转对常规成像的影响,之后进行了补偿。(Rotating point target of SAR imaging algorithm. Analysis of the impact of rotation on conventional imaging, after the compensation.)
    2020-11-04 23:19:52下载
    积分:1
  • CustomHighPassFiltering
    this filter allows high frequency
    2015-01-03 01:54:43下载
    积分:1
  • ST-code
    matlab程序,实现广义S变换功能,广义S变换是用于时频分析的一重算法。(ST code in matlab)
    2013-12-06 16:35:10下载
    积分:1
  • CMTF_Toolbox_v1_0
    CMTF工具箱包含了耦合矩阵和张量矩阵的分解的matlab编码(Coupled Matrix and Tensor Factorization for Matlab)
    2014-01-23 15:17:24下载
    积分:1
  • fade
    matlab实现基本的通信仿真技术fade(To achieve basic communications simulation technology bpsk using matlab)
    2009-10-22 23:59:41下载
    积分:1
  • Matlab
    机载合成孔径雷达(SAR)多点目标回波信号仿真及RD成像仿真(airborn sar point target imaging)
    2012-07-04 17:15:44下载
    积分:1
  • bayes-classifier-
    程序展示了bayes classifier对于连续数据的应用,假设数据均服从高斯分布。程序包含了binary classification和multi-classification的例子。(Program shows bayes classifier for continuous data applications, assume that the data are Gaussian. Program includes a binary classification and multi-classification examples.)
    2013-08-04 02:53:08下载
    积分:1
  • example03_09
    使用imfilter和fspecial实现空间滤波(To use imfilter and fspecial spatial filtering)
    2013-03-14 23:00:59下载
    积分:1
  • 696518资源总数
  • 104432会员总数
  • 16今日下载