hdoj--2015--偶数求和(水题)】的更多相关文章

Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值.编程输出该平均值序列. Input 输入数据有多组,每组占一行,包含两个正整数n和m,n和m的含义如上所述. Output 对于每组输入数据,输出一个平均值序列,每组输出占一行. Sample Input 3 2 4 2 Sample Output 3 6 3 7 import java.util.Sc…
偶数求和 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 55669    Accepted Submission(s): 24279 Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值.编程输…
http://acm.hdu.edu.cn/showproblem.php?pid=2015 Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值.编程输出该平均值序列.   Input 输入数据有多组,每组占一行,包含两个正整数n和m,n和m的含义如上所述.   Output 对于每组输入数据,输出一个平均值序列,每组输出占一行.   Sample In…
Problem Description How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) With two cards you can make…
Problem Description Jackson wants to know his rank in the class. The professor has posted a list of student numbers and marks. Compute Jackson's rank in class; that is, if he has the top mark(or is tied for the top mark) his rank is 1; if he has the…
Strange Class Time Limit: 1 Sec  Memory Limit: 256 MB 题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=5198 Description In Vivid’s school, there is a strange class(SC). In SC, the students’ names are very strange. They are in the same format: anbncn(a,…
Draw Something Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2850 Accepted Submission(s): 2373 Problem Description Wangpeng is good at drawing. Now he wants to say numbers like "521" to his…
1827: 石锅全拌 Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 6  Solved: 3 SubmitStatusWeb Board Description 石锅全拌来到了一家神奇的餐厅,这家餐厅的菜单中有各种各样的好吃的,但是这家餐厅的规矩是只能点菜单上连续的一段菜.石锅全拌心里自然是想菜单上有的全部点一份,可是摸摸口袋发现钱没带够.由于计算总价太过麻烦,请你写一段程序,每当石锅全拌选择好要点的起点和终点时立刻告诉他这么点菜需要花多少钱.…
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2015 偶数求和 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 125922    Accepted Submission(s): 52019 Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始…
偶数求和 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 69010    Accepted Submission(s): 29401 Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值.编程输…