2011年8月1日

ACM HDU 1202 The calculation of GPA(简单题)

摘要: The calculation of GPATime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9186Accepted Submission(s): 2110Problem Description每学期的期末,大家都会忙于计算自己的平均成绩,这个成绩对于评奖学金是直接有关的。国外大学都是计算GPA(grade point average) 又称GPR(grade point ratio),即成绩点数与学分的加权平均值来代表一个学生的成绩的。那么如 阅读全文

posted @ 2011-08-01 23:21 kuangbin 阅读(1074) 评论(0) 推荐(0) 编辑

ACM HDU 1201 18岁生日(简单水题)

摘要: 18岁生日Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7131Accepted Submission(s): 2209Problem DescriptionGardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。Input一个数T,后面T行每行有一 阅读全文

posted @ 2011-08-01 22:57 kuangbin 阅读(1298) 评论(0) 推荐(1) 编辑

ACM HDU 1197 Specialized Four-Digit Numbers(简单进制转换)

摘要: Specialized Four-Digit NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1431Accepted Submission(s): 1017Problem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals 阅读全文

posted @ 2011-08-01 22:19 kuangbin 阅读(2358) 评论(0) 推荐(0) 编辑

ACM HDU 1196 Lowest Bit(简单水题)

摘要: Lowest BitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3399Accepted Submission(s): 2426Problem DescriptionGiven an positive integer A (1 <= A <= 100), output the lowest bit of A.For example, given A = 26, we can write A in binary form as 1 阅读全文

posted @ 2011-08-01 20:56 kuangbin 阅读(1054) 评论(0) 推荐(0) 编辑

ACM HDU 1194 Beat the Spread!(简单的水题)

摘要: Beat the Spread!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1723Accepted Submission(s): 899Problem DescriptionSuperbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local 阅读全文

posted @ 2011-08-01 20:48 kuangbin 阅读(1526) 评论(0) 推荐(0) 编辑

ACM POJ 2109 Power of Cryptography

摘要: http://poj.org/problem?id=2109Power of CryptographyTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 10904Accepted: 5626DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted 阅读全文

posted @ 2011-08-01 20:10 kuangbin 阅读(333) 评论(0) 推荐(0) 编辑

ACM HDU 1070 Milk

摘要: MilkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5689Accepted Submission(s): 1291Problem DescriptionIgnatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of milk in the supermar 阅读全文

posted @ 2011-08-01 19:19 kuangbin 阅读(771) 评论(0) 推荐(0) 编辑

ACM HDU 1106 排序 (简单题)

摘要: 排序Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15676Accepted Submission(s): 4032Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。Input输入包含多组 阅读全文

posted @ 2011-08-01 19:16 kuangbin 阅读(2712) 评论(2) 推荐(0) 编辑

ACM HDU 1108 最小公倍数(完全的水题)

摘要: 最小公倍数Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14564Accepted Submission(s): 7651Problem Description给定两个正整数,计算这两个数的最小公倍数。Input输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数.Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。Sample Input10 14Sample Output70SourcePOJ Reco 阅读全文

posted @ 2011-08-01 19:14 kuangbin 阅读(1563) 评论(0) 推荐(0) 编辑

ACM HDU 1157 Who's in the Middle (完全的水题,排序找中值的)

摘要: Who's in the MiddleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3360Accepted Submission(s): 1646Problem DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of 阅读全文

posted @ 2011-08-01 19:04 kuangbin 阅读(2457) 评论(0) 推荐(0) 编辑

ACM HDU 1163 Eddy's digital Roots(数根,找规律)

摘要: Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1609Accepted Submission(s): 947Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit 阅读全文

posted @ 2011-08-01 19:01 kuangbin 阅读(448) 评论(0) 推荐(0) 编辑

ACM HDU 1164 Eddy's research I(素数分解,水题)

摘要: Eddy's research ITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2443Accepted Submission(s): 1492Problem DescriptionEddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divi 阅读全文

posted @ 2011-08-01 18:55 kuangbin 阅读(429) 评论(0) 推荐(0) 编辑

ACM HDU 1170 Balloon Comes! (完全的水题,加减乘除)

摘要: Balloon Comes!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10546Accepted Submission(s): 3623Problem 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 bea 阅读全文

posted @ 2011-08-01 18:49 kuangbin 阅读(3577) 评论(0) 推荐(0) 编辑

【转】2011 Multi-University Training Contest 3 - Host by BIT

摘要: T1:Inverting Cups题意是给出A个杯子,一开始都朝上,每次可以翻B个杯子,问最少需要翻转多少次可以让所有杯子都朝下。分类讨论:首先对于A%B==0一类情况,直接输出。对于A>=3B,让A减到[2B,3B)区间内,翻转次数累加上A/B-2。当A>=2B时,分奇偶讨论:A为奇数B为偶数显然无解;AB同奇偶时最多需要3次,A偶数B奇数最多需要4次。当A<2B时,分奇偶讨论:AB同奇偶时最多需要3次,A奇数B偶数无解,A偶数B奇数时,有F(A,B)=F(A,A-B)成立,可以转换成上面的情况求解即可。具体证明画画图就知道了,将两个B分别放到对称的位置上,想办法调整使得每 阅读全文

posted @ 2011-08-01 16:25 kuangbin 阅读(352) 评论(0) 推荐(0) 编辑

ACM HDU 1098Ignatius's puzzle

摘要: Ignatius's puzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2716Accepted Submission(s): 1788Problem DescriptionIgnatius is poor at math,he falls across a puzzle problem,so he has no choice but to appeal to Eddy. this problem describes that 阅读全文

posted @ 2011-08-01 10:49 kuangbin 阅读(643) 评论(0) 推荐(0) 编辑

A hard puzzle ACM HDU1097

摘要: A hard puzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13437Accepted Submission(s): 4677Problem Descriptionlcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,s 阅读全文

posted @ 2011-08-01 10:23 kuangbin 阅读(1599) 评论(4) 推荐(0) 编辑

导航

JAVASCRIPT: