文件名称:1268
-
所属分类:
- 标签属性:
- 上传时间:2014-11-25
-
文件大小:8.68kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在双鱼的乒乓球上一般都会标有三星,二星,或者一星的字样,星级越高就表示球的质量越好。
星级的评定和球的重量,直径,硬度等很多因素有关,不过在这里,我们只考虑球的重量对星级评定产生的影响。
乒乓球有一个标准的重量S,如果球的重量和标准越接近,星级就会越高。具体来讲,对于球的重量和S的差的绝对值,如果小于或等于D1,那么这个球就会被标为三星,如果大于D1且小于或等于D2,那么就会被标为二星,如果大于D2且小于或等于D3就会被标为一星,如果大于D3则不对其标星(D1 < D2 < D3)。
现在给你N个乒乓球,你需要计算其中各个星级的乒乓球各有多少个。
输入的第一行包含一个整数T (1 <= T <= 20),表示接下来一共有T组测试数据。
对于每组数据,第一行包含5个整数N (1 <= N <= 10), S (1 <= S <= 20), D1, D2, D3 (1 <= D1 < D2 < D3 <= 20),含义同上。接下来一行包含N个不大于20的正整数,依次描述了各个乒乓球的重量。-Pisces table tennis in general will be marked with Samsung, Award, or a star, the star says that the higher the quality of the ball better. Star assessment and many factors weight, diameter and hardness of the ball-related, but here, we only consider the impact of the ball on the star ratings generated by weight. Tennis has a standard weight of S, if the ball' s weight and standard closer stars will be higher. Specifically, for the absolute value of the weight of the ball and the difference S, and if less than or equal to D1, then the ball will be marked as Samsung, if greater than D1 and less than or equal to D2, it will be marked as two star, if is greater than D2 and less than or equal to D3 will be marked as a star, if not greater than its BIAOXING D3 (D1 < D2 < D3). Now to give you the N table tennis, you need to calculate where each star table tennis each number. The first line of input contains an integer T (1 < = T < = 20), a total of T represents the next set of tes
星级的评定和球的重量,直径,硬度等很多因素有关,不过在这里,我们只考虑球的重量对星级评定产生的影响。
乒乓球有一个标准的重量S,如果球的重量和标准越接近,星级就会越高。具体来讲,对于球的重量和S的差的绝对值,如果小于或等于D1,那么这个球就会被标为三星,如果大于D1且小于或等于D2,那么就会被标为二星,如果大于D2且小于或等于D3就会被标为一星,如果大于D3则不对其标星(D1 < D2 < D3)。
现在给你N个乒乓球,你需要计算其中各个星级的乒乓球各有多少个。
输入的第一行包含一个整数T (1 <= T <= 20),表示接下来一共有T组测试数据。
对于每组数据,第一行包含5个整数N (1 <= N <= 10), S (1 <= S <= 20), D1, D2, D3 (1 <= D1 < D2 < D3 <= 20),含义同上。接下来一行包含N个不大于20的正整数,依次描述了各个乒乓球的重量。-Pisces table tennis in general will be marked with Samsung, Award, or a star, the star says that the higher the quality of the ball better. Star assessment and many factors weight, diameter and hardness of the ball-related, but here, we only consider the impact of the ball on the star ratings generated by weight. Tennis has a standard weight of S, if the ball' s weight and standard closer stars will be higher. Specifically, for the absolute value of the weight of the ball and the difference S, and if less than or equal to D1, then the ball will be marked as Samsung, if greater than D1 and less than or equal to D2, it will be marked as two star, if is greater than D2 and less than or equal to D3 will be marked as a star, if not greater than its BIAOXING D3 (D1 < D2 < D3). Now to give you the N table tennis, you need to calculate where each star table tennis each number. The first line of input contains an integer T (1 < = T < = 20), a total of T represents the next set of tes
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Untitled4.c
Untitled4.exe
Untitled4.o
Untitled4.exe
Untitled4.o
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.