
ACM
文章平均质量分 51
ACM
英国老鼠_
腾讯微信算法工程师
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
NYOJ 74 小学生算术题
描述很多小学生在学习加法时,发现“进位”特别容易出错。你的任务是计算两个三位数在相加时需要多少次进位。你编制的程序应当可以连续处理多组数据,直到读到两个0(这是输入结束标记)。输入输入两个正整数m,n.(m,n,都是三位数)输出输出m,n,相加时需要进位多少次。样例输入123 456555 555123 5940 0样例输出03 1原创 2016-03-10 18:27:00 · 703 阅读 · 0 评论 -
HDU 2.1.6 找新朋友
找新朋友Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2681 Accepted Submission(s): 1254 Problem Description新年快到了,“猪头帮协会原创 2016-03-10 18:18:47 · 1073 阅读 · 1 评论 -
HDU 2.1.5 七夕节
七夕节Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4066 Accepted Submission(s): 1438 Problem Description七夕节那天,月老来到数字王原创 2016-03-10 18:16:51 · 509 阅读 · 0 评论 -
HDU 2.1.4 又见GCD
又见GCDTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2573 Accepted Submission(s): 1273 Problem Description有三个正整数a,b,c原创 2016-03-10 18:15:20 · 311 阅读 · 0 评论 -
HDU 2.1.3 Cake
CakeTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2586 Accepted Submission(s): 1238 Problem Description一次生日Party可能有原创 2016-03-10 18:14:38 · 338 阅读 · 0 评论 -
HDU 2.1.2 How many prime numbers
How many prime numbersTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8122 Accepted Submission(s): 2619 Problem Descrip原创 2016-03-10 18:14:13 · 331 阅读 · 0 评论 -
HDU 2.1.1 最小公倍数
最小公倍数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3453 Accepted Submission(s): 2496 Problem Description给定两个正整数,计算这原创 2016-03-10 18:13:42 · 373 阅读 · 0 评论 -
HDU 1.3.8 As Easy As A+B
As Easy As A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2553 Accepted Submission(s): 1235 Problem DescriptionTh原创 2016-03-10 18:12:40 · 221 阅读 · 0 评论 -
HDU 1.3.7 悼念512汶川大地震遇难同胞——老人是真饿了
悼念512汶川大地震遇难同胞——老人是真饿了Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2605 Accepted Submission(s): 1062 Problem Descrip原创 2016-03-10 18:11:58 · 371 阅读 · 0 评论 -
HDU 2.1.7 整数对
整数对Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2457 Accepted Submission(s): 954Problem DescriptionGardon和小希玩了一个游原创 2016-03-10 18:19:19 · 358 阅读 · 0 评论 -
HDU 2.1.8 The area
The areaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1305 Accepted Submission(s): 1038 Problem DescriptionIgnatius原创 2016-03-10 18:19:54 · 531 阅读 · 0 评论 -
ACM 阶乘的精确值
输入不超过1000的正整数n,输出n!=1*2*3*...*n的精确结果。样例输入:30样例输出:265252859812191058636308480000000#include int ans[40]; int main() { memset(ans, 0, sizeof(ans)); int n,c=0; scanf("%d",原创 2016-03-10 18:26:23 · 385 阅读 · 0 评论 -
HDU 2.2.1 Fibonacci
Problem Description2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考他,于是每问他一个数字,他就要把答案说出来,不过有的数字太长了。所以规定超过4位的只要说出前4位就原创 2016-03-10 18:25:29 · 369 阅读 · 0 评论 -
HDU 2.1.7 Leftmost Digit
Problem DescriptionGiven a positive integer N, you should output the leftmost digit of N^N. InputThe input contains several test cases. The first line of the input is a single intege原创 2016-03-10 18:24:15 · 369 阅读 · 0 评论 -
HDU 1.3.8 Who's in the Middle
Problem DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as much or more than the median; half give as原创 2016-03-10 18:23:27 · 287 阅读 · 0 评论 -
HDU 1.3.6 Rank
Problem DescriptionJackson 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 t原创 2016-03-10 18:22:41 · 296 阅读 · 0 评论 -
HDU 1.3.5 Wooden Sticks
Problem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It nee原创 2016-03-10 18:21:59 · 312 阅读 · 0 评论 -
HDU 1.3.4 百步穿杨
Problem Description时维九月,序属三秋,辽军大举进攻MCA山,战场上两军正交锋.辽军统帅是名噪一时的耶律-James,而MCA方则是派出了传统武将中草药123.双方经过协商,约定在十一月八日正午十分进行射箭对攻战.中草药123早早就开始准备,但是他是武将而不是铁匠,造弓箭的活就交给聪明能干的你了,现在告诉你每种弓箭规格,即箭身的长度,以及每种规格弓箭所需要的数目,要求你把需要原创 2016-03-10 18:21:30 · 676 阅读 · 0 评论 -
HDU 1.3.3 排名
Problem Description今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑 每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的 考生,并将他们的成绩按降序打印。 Input测试输入包含若干场考试的信息。每场考试信息的第1行给出考生人数N (原创 2016-03-10 18:21:05 · 352 阅读 · 0 评论 -
HDU 1.3.6 排序
排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4066 Accepted Submission(s): 1176 Problem Description输入一行数字,如果我们把这行原创 2016-03-10 18:11:22 · 305 阅读 · 0 评论 -
HDU 1.3.5 shǎ崽 OrOrOrOrz
shǎ崽 OrOrOrOrzTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3988 Accepted Submission(s): 1236 Problem DescriptionAc原创 2016-03-10 18:10:29 · 317 阅读 · 0 评论 -
HDU 1.3.4 What Is Your Grade?
What Is Your Grade?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3431 Accepted Submission(s): 978 Problem Description原创 2016-03-10 18:09:40 · 344 阅读 · 0 评论 -
HDU 1.2.1 hide handkerchief
hide handkerchiefTime Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4817 Accepted Submission(s): 1605 Problem Description原创 2016-03-10 18:03:03 · 313 阅读 · 0 评论 -
HDU 1.1.8 A+B for Input-Output Practice (VIII)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M,原创 2016-03-10 18:02:23 · 278 阅读 · 0 评论 -
HDU 1.1.7 A+B for Input-Output Practice (VII)
Problem DescriptionYour task is to Calculate a + b. InputThe input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.原创 2016-03-10 18:01:45 · 271 阅读 · 0 评论 -
HDU 1.1.6 A+B for Input-Output Practice (VI)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains multiple test cases, and one case one line. Each case starts with an integer N, and then N原创 2016-03-10 18:01:08 · 293 阅读 · 0 评论 -
HDU 1.1.5 A+B for Input-Output Practice (V)
#include using namespace std; int main() { int m, sum, n; cin >> m; for (int i = 0; i<m; i++) { sum = 0; cin >> n; int *num = new int[n]; for (int i = 0; i<n; i++) { cin >> n原创 2016-03-10 18:00:17 · 264 阅读 · 0 评论 -
HDU 1.1.4 A+B for Input-Output Practice (IV)
Problem DescriptionYour task is to Calculate the sum of some integers. InputInput contains multiple test cases. Each test case contains a integer N, and then N integers follow in the原创 2016-03-10 17:19:57 · 313 阅读 · 0 评论 -
HDU 1.1.3 A+B for Input-Output Practice (III)
Problem DescriptionYour task is to Calculate a + b. InputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test c原创 2016-03-10 17:19:15 · 262 阅读 · 0 评论 -
HDU 1.1.2 A+B for Input-Output Practice (II)
Problem DescriptionYour task is to Calculate a + b. InputInput contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, sep原创 2016-03-10 17:17:15 · 281 阅读 · 0 评论 -
HDU 1.2.2 Box of Bricks
Box of BricksTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7422 Accepted Submission(s): 1717 Problem DescriptionLit原创 2016-03-10 18:03:39 · 298 阅读 · 0 评论 -
HDU 1.2.3 The Seven Percent Solution
The Seven Percent SolutionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2505 Accepted Submission(s): 1492 Problem Des原创 2016-03-10 18:04:08 · 326 阅读 · 0 评论 -
HDU 1.3.3 开门人和关门人
开门人和关门人Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2676 Accepted Submission(s): 1260 Problem Description每天第一个到机房的原创 2016-03-10 18:09:14 · 222 阅读 · 0 评论 -
HDU 1.3.2 Tian Ji -- The Horse Racing
Tian Ji -- The Horse RacingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4215 Accepted Submission(s): 1021 Problem De原创 2016-03-10 18:08:32 · 259 阅读 · 0 评论 -
HDU 1.3.1 FatMouse' Trade
FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4921 Accepted Submission(s): 1476 Problem DescriptionF原创 2016-03-10 18:07:37 · 249 阅读 · 0 评论 -
HDU 1.2.8 Vowel Counting
Vowel CountingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2509 Accepted Submission(s): 1367 Problem DescriptionTh原创 2016-03-10 18:06:58 · 399 阅读 · 0 评论 -
HDU 1.2.7 AC Me
AC MeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4673 Accepted Submission(s): 1632 Problem DescriptionIgnatius is原创 2016-03-10 18:06:34 · 627 阅读 · 0 评论 -
HDU 1.2.6 Lowest Bit
Lowest BitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2297 Accepted Submission(s): 1588 Problem DescriptionGiven原创 2016-03-10 18:06:06 · 246 阅读 · 0 评论 -
HDU 1.2.5 IBM Minus One
IBM Minus OneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3750 Accepted Submission(s): 1449 Problem DescriptionYou原创 2016-03-10 18:05:36 · 255 阅读 · 0 评论 -
HDU 1.2.4 decimal system
decimal systemTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3508 Accepted Submission(s): 1364 Problem DescriptionAs原创 2016-03-10 18:05:00 · 305 阅读 · 0 评论