摘要:
Balloon Comes!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16847 Accepted Submission(s): 6150Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very b 阅读全文
摘要:
A+B for Input-Output Practice (VIII)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73526 Accepted Submission(s): 22760Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and th 阅读全文
摘要:
A+B for Input-Output Practice (VII)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34147 Accepted Submission(s): 22856Problem DescriptionYour task is to Calculate a + b.InputThe input will consist of a series of pairs of integers a and b, separate 阅读全文
摘要:
A+B for Input-Output Practice (VI)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34609 Accepted Submission(s): 23427Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains multiple test cases, and one case one li 阅读全文
摘要:
A+B for Input-Output Practice (V)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 36633 Accepted Submission(s): 24927Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then 阅读全文
摘要:
A+B for Input-Output Practice (IV)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50209 Accepted Submission(s): 26940Problem DescriptionYour task is to Calculate the sum of some integers.InputInput contains multiple test cases. Each test case cont 阅读全文
摘要:
洗澡时间限制:1000 ms | 内存限制:65535 KB 难度:1描述 Mostrp是个爱干净的好少年。 有一次去澡堂洗澡时发现 澡堂的澡柜编号中没有出现过数字‘4’。 Mostrp 感到很好奇。可能是因为在澡堂老板眼里。数字‘4’是十分不吉利的。现在Mostrp知道澡柜的最大的编号N,你能帮他算出澡堂一共有多少澡柜吗?输入 有多组数据,每行输入一个N。( 1 2 int main() 3 {int n; 4 while(scanf("%d",&n)!=EOF) 5 {int i,j,m; 6 m=n; 7 for(i=1;i0)10 {if(j%10==4)1 阅读全文
摘要:
Old Calculator时间限制:1000 ms | 内存限制:65535 KB 难度:1描述 szhhck have an old calculator bought 5 years ago.he find the old machine can just calculate expressions like this :A-B、A+B、A*B、A/B、A%B.because it is too old and long time not use,the old machine maybe conclude a wrong answer sometime.Your task is to 阅读全文
摘要:
Time时间限制:1000 ms | 内存限制:65535 KB 难度:2描述 Digital clock use 4 digits to express time, each digit is described by 3*3 characters (including”|”,”_”and” “).now given the current time, please tell us how can it be expressed by the digital clock.Hint:The digits showed by the digital clock are as follows: _ 阅读全文
摘要:
数的长度时间限制:3000 ms | 内存限制:65535 KB 难度:1描述 N!阶乘是一个非常大的数,大家都知道计算公式是N!=N*(N-1)······*2*1.现在你的任务是计算出N!的位数有多少(十进制)?输入 首行输入n,表示有多少组测试数据(n#include int main(){int n;scanf("%d",&n);while(n--){int m,i;double t,s=0;scanf("%d",&m);for(i=1;i<=m;i++){t=lo 阅读全文
摘要:
成绩转换Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57281 Accepted Submission(s): 24928Problem Description输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下:90~100为A;80~89为B;70~79为C;60~69为D;0~59为E;Input输入数据有多组,每组占一行,由一个整数组成。Output对于每组输入数据,输出一行。如果输入数据不在0~100范围内,请输出一行 阅读全文
摘要:
平方和与立方和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 69792 Accepted Submission(s): 21706Problem Description给定一段连续的整数,求出他们中所有偶数的平方和以及所有奇数的立方和。Input输入数据包含多组测试实例,每组测试实例包含一行,由两个整数m和n组成。Output对于每组输入数据,输出一行,应包括两个整数x和y,分别表示该段连续的整数中所有偶数的平方和以及所有奇数的立方和。你可 阅读全文
摘要:
A+B for Input-Output Practice (III)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56513 Accepted Submission(s): 29030Problem DescriptionYour task is to Calculate a + b.InputInput contains multiple test cases. Each test case contains a pair of int 阅读全文
摘要:
A+B for Input-Output Practice (II)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47295 Accepted Submission(s): 31461Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Ea 阅读全文
摘要:
A+B for Input-Output Practice (I)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 62478 Accepted Submission(s): 35144Problem DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners. You mu 阅读全文