
水题
fanlinqiang
这个作者很懒,什么都没留下…
展开
-
Fortune-telling with camomile
Fortune-telling with camomileTime limit per test: 0.5 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardMasha loves Petya. The following question gives her no rest原创 2012-11-07 21:23:16 · 525 阅读 · 0 评论 -
hdu 2012 素数判定
素数判定Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 46969 Accepted Submission(s): 16073Problem Description对于表达式n^2+n+41,当n在(x,y)范围内取整原创 2012-11-25 20:14:31 · 471 阅读 · 0 评论 -
hdu 1040 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): 24266 Accepted Submission(s): 10230Problem DescriptionThese days, I am原创 2012-11-25 17:14:22 · 435 阅读 · 0 评论 -
hdu 1229 还是A+B
还是A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11518 Accepted Submission(s): 5636Problem Description读入两个小于10000的正整数A和B,计算A+B。需要原创 2012-11-24 20:25:10 · 466 阅读 · 0 评论 -
a^b(快速幂取模)
http://www.tyvj.cn/Problem_Show.aspx?id=1118a^bFrom Admin描述 Description求a^b 由于结果可能很大,我们现在只需要知道这个值mod 1012就可以了(为什么是1012?我的生日)ab输入格式 InputFormat第一行两个数 a b输出格式 OutputFormat原创 2012-11-20 21:34:32 · 980 阅读 · 0 评论 -
Ignatius and the Princess IV(map)
Ignatius and the Princess IVTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 10398 Accepted Submission(s): 4102Problem Description"OK,原创 2012-11-19 20:19:18 · 440 阅读 · 0 评论 -
hdu 1406 完数
完数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12467 Accepted Submission(s): 4368Problem Description完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身原创 2012-12-03 21:30:11 · 546 阅读 · 0 评论 -
A Famous Music Composer(map)
A Famous Music ComposerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 560 Accepted Submission(s): 334Problem DescriptionMr. B is a f原创 2012-11-19 19:55:17 · 925 阅读 · 0 评论 -
hdu 1235 统计同成绩学生人数
统计同成绩学生人数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9721 Accepted Submission(s): 5760Problem Description读入N名学生的成绩,将获得某一给定分数的学生人数原创 2012-11-25 11:14:32 · 617 阅读 · 0 评论 -
Scientific Problem
Scientific ProblemTime Limit:500MSMemory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionOnce upon a time Professor Idioticideasinventor was travelling by train. Watching c原创 2012-11-07 21:20:47 · 426 阅读 · 0 评论 -
The Famous Clock
The Famous ClockThe Famous Clock时间限制:1000 ms | 内存限制:65535 KB难度:1描述 Mr. B, Mr. G and Mr. M are now in Warsaw, Poland, for the 2012’s ACM-ICPC World Finals Contest. They’ve decided to ta原创 2012-11-07 21:16:44 · 575 阅读 · 0 评论 -
汽水瓶
汽水瓶题目描述有这样一道智力题:“某商店规定:三个空汽水瓶可以换一瓶汽水。小张手上有十个空汽水瓶,她最多可以换多少瓶汽水喝?”答案是5瓶,方法如下:先用9个空瓶子换3瓶汽水,喝掉3瓶满的,喝完以后4个空瓶子,用3个再换一瓶,喝掉这瓶满的,这时候剩2个空瓶子。然后你让老板先借给你一瓶汽水,喝掉这瓶满的,喝完以后用3个空瓶子换一瓶满的还给老板。如果小张手上有n个空汽水瓶,最多可以换原创 2012-12-12 21:13:49 · 599 阅读 · 0 评论