登录
首页 » Java » personNum

personNum

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

  • BaiSkeletonPruningDCE
    skeleton prunning, extract skeleton from binary images by junction points and curve points and end points.
    2010-03-02 16:51:45下载
    积分:1
  • Qpsk
    说明:  实现BPSK调制,并且简单方便,以供大家参考(this method could make BPSK modulation)
    2010-04-27 21:05:00下载
    积分:1
  • fangzhen
    CR中基于能量检测的频谱感知matlab程序仿真(CR in the detection of spectrum sensing based on energy simulation program)
    2010-06-02 10:56:11下载
    积分:1
  • transformator-simulation
    transformator simulation
    2012-06-15 00:49:34下载
    积分:1
  • computer-project
    cmac+code matlab cmac
    2013-05-18 17:50:48下载
    积分:1
  • mengtekaluofaqiupi
    说明:  蒙特卡洛求pi,非常简单的求pi值的代码源(Monte Carlo for pi, a very simple code for the source of the value of pi)
    2009-08-09 17:07:17下载
    积分:1
  • menu-matlab
    create menu in matlab graph sin cos
    2014-10-16 17:52:57下载
    积分:1
  • covmatrix
    计算矩阵列向量的协方差矩阵,同时计算各列向量的均值(calculate the cov matrix)
    2013-05-01 20:48:56下载
    积分:1
  • 16qam
    16-QAM基带传输系统的Matlab仿真 实现了主要模块二进制信息源输入,16QAM调制,发射滤波器,接收滤波器,采样,均衡,信号检测,16QAM解调,信息还原输出,产生BER曲线图。(16-QAM base-band transmission system Matlab simulation to achieve the main source of information input module binary, 16QAM modulation, fired filter, receiver filter, sampling, balance, signal detection, 16QAM demodulator, information to restore the output, resulting BER curves.)
    2020-11-17 21:59:39下载
    积分:1
  • siftDemoV4
    sift算法进行特征匹配的程序,先检测出关键点,找到两幅图像的关键点连线,里边附有几张图片,效果不错!(code for keypoint match based on sift,the performance is good!)
    2010-12-23 16:32:28下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载