上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: 云之遥--素数Time Limit 1000msMemory Limit 65536Kdescription你能判断1个数是不是素数吗? input输入数据有多组,每组1个数N,这里N是大于0且小于1000的整数。 output是素数,输出YES,否则输出NO,注意大小写啊! sample_input1234 sample_outputNOYESYESNO直接贴代码,埃拉托斯尼斯筛法不解释[C++] 1 #include<iostream> 2 #include<cstring> 3 4 using namespace std; 5 6 bo... 阅读全文
posted @ 2013-05-09 15:02 ~~Snail~~ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 分拆素数和Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 15712Accepted Submission(s): 6789 Problem Description把一个偶数拆成两个不同素数的和,有几种拆法呢?Input输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。Output对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。Sample Input30260Sample Output32类似于NEF 阅读全文
posted @ 2013-05-09 14:51 ~~Snail~~ 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 滑雪Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 65570Accepted: 24041DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9一个人可以从某个... 阅读全文
posted @ 2013-05-08 22:06 ~~Snail~~ 阅读(438) 评论(2) 推荐(0) 编辑
摘要: How many 0's?Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2591Accepted: 1349DescriptionA Benedict monk No.16 writes down the decimal representations of all natural numbers between and including m and n, m ≤ n. How many 0's will he write down?InputInput consists of a sequence of l 阅读全文
posted @ 2013-05-08 06:54 ~~Snail~~ 阅读(435) 评论(0) 推荐(0) 编辑
摘要: BOJ 1 : http://www.cnblogs.com/lzj-0218/archive/2013/05/05/3060902.htmlBOJ1561 :http://www.cnblogs.com/lzj-0218/p/3181336.htmlBOJ 1562 : http://www.cnblogs.com/lzj-0218/p/3181351.htmlBOJ 1573 : http://www.cnblogs.com/lzj-0218/p/3187252.htmlBOJ 1575 : http://www.cnblogs.com/lzj-0218/p/3185578.htmlBOJ 阅读全文
posted @ 2013-05-05 13:57 ~~Snail~~ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: A+B ProblemAccept:3524 Submit:8578Time Limit:1000MS Memory Limit:4000KBDescriptionCalculate a+bInput Two integer a,b (0<=a,b<=100)Output Output a+bSample Input 1 1Sample Output 2[C++] 1 #include<iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 int a,b; 8 while(cin>>a>> 阅读全文
posted @ 2013-05-05 13:55 ~~Snail~~ 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Celebrity jeopardyTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 13526Accepted: 7618DescriptionIt's hard to construct a problem that's so easy that everyone will get it, yet still difficult enough to be worthy of some respect. Usually, we err on one side or the other. How simple ca 阅读全文
posted @ 2013-05-05 13:36 ~~Snail~~ 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 猜想Time Limit 3000msMemory Limit 65536Kdescription哥德巴赫(Goldbach ]C.,1690.3.18~1764.11.20)是德国数学家;出生于格奥尼格斯别尔格(现名加里宁城);曾在英国牛津大学学习;原学法学,由于在欧洲各国访问期间结识了贝努利家族,所以对数学研究产生了兴趣;曾担任中学教师。1725年,到了俄国,同年被选为彼得堡科学院院士;1725年~1740年担任彼得堡科学院会议秘书;1742年,移居莫斯科,并在俄国外交部任职。1742年,哥德巴赫在教学中发现,每个不小于6的偶数都是两个素数(只能被1和它本身整除的数)之和。如6=3+3,1 阅读全文
posted @ 2013-05-04 18:27 ~~Snail~~ 阅读(261) 评论(0) 推荐(0) 编辑
摘要: HDU 1021: http://www.cnblogs.com/lzj-0218/archive/2013/05/14/3078581.htmlHDU 2035: http://www.cnblogs.com/lzj-0218/archive/2013/05/14/3078609.htmlHDU ... 阅读全文
posted @ 2013-05-04 17:29 ~~Snail~~ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Heu OJ 百题解:1001:http://www.cnblogs.com/lzj-0218/p/3211971.html3201:http://www.cnblogs.com/lzj-0218/archive/2013/04/30/3051542.html 阅读全文
posted @ 2013-05-04 17:25 ~~Snail~~ 阅读(134) 评论(0) 推荐(0) 编辑
摘要: NEFU 2 :http://www.cnblogs.com/lzj-0218/archive/2013/05/04/3059826.htmlNEFU 109:http://www.cnblogs.com/lzj-0218/archive/2013/05/09/3069027.htmlNEFU 115:http://www.cnblogs.com/lzj-0218/archive/2013/04/30/3051546.htmlNEFU 117:http://www.cnblogs.com/lzj-0218/archive/2013/05/04/3059681.htmlNEFU 118:http 阅读全文
posted @ 2013-05-04 17:17 ~~Snail~~ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Adding Reversed NumbersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 13466Accepted: 7443DescriptionThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigure so 阅读全文
posted @ 2013-05-04 17:16 ~~Snail~~ 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 素数个数的位数Time Limit 1000msMemory Limit 65536Kdescription小明是一个聪明的孩子,对数论有着很浓烈的兴趣。他发现求1到正整数10n 之间有多少个素数是一个很难的问题,该问题的难以决定于n 值的大小。现在的问题是,告诉你n的值,让你帮助小明计算小于10n的素数的个数值共有多少位? input输入数据有若干组,每组数据包含1个整数n(1 < n < 1000000000),若遇到EOF则处理结束。 output对应每组数据,将小于10n 的素数的个数值的位数在一行内输出,格式见样本输出。同组数据的输出,其每个尾数之间空一格,行... 阅读全文
posted @ 2013-05-04 17:11 ~~Snail~~ 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Catch That CowTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 35330Accepted: 10888DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100 阅读全文
posted @ 2013-05-04 06:41 ~~Snail~~ 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Box of BricksTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 15765Accepted: 6584DescriptionLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice. & 阅读全文
posted @ 2013-05-03 21:09 ~~Snail~~ 阅读(300) 评论(0) 推荐(0) 编辑
摘要: u Calculate eTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 16932Accepted: 10033Special JudgeDescriptionA simple mathematical formula for e ise=Σ0<=i<=n1/i!where n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small values of 阅读全文
posted @ 2013-05-02 20:19 ~~Snail~~ 阅读(241) 评论(0) 推荐(0) 编辑
摘要: The Hardest Problem EverTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 20134Accepted: 11097DescriptionJulius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he decided to create one of the first 阅读全文
posted @ 2013-05-02 20:03 ~~Snail~~ 阅读(295) 评论(0) 推荐(0) 编辑
摘要: POJ 1001:http://www.cnblogs.com/lzj-0218/p/3528169.htmlPOJ 1017: http://www.cnblogs.com/lzj-0218/p/3246524.htmlPOJ 1035: http://www.cnblogs.com/lzj-0218/archive/2013/05/30/3108840.htmlPOJ 1047: http://www.cnblogs.com/lzj-0218/archive/2013/05/30/3108784.htmlPOJ 1050: http://www.cnblogs.com/lzj-0218/p 阅读全文
posted @ 2013-05-02 19:31 ~~Snail~~ 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Integer InquiryTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 26570Accepted: 10297DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. ``This su 阅读全文
posted @ 2013-05-02 19:26 ~~Snail~~ 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 北师大校赛,下午2点才开始做,做了1个半点AC了3道,结束后又AC了1道~~A. BNU ACM校队时间安排表Time Limit: 1000msCase Time Limit: 1000msMemory Limit: 65536KB64-bit integer IO format: %lld Java class name: MainSubmitStatusPID: 29377Font Size:ICPC,全称国际大学生程序设计竞赛,由美国计算机协会(ACM)主办。它是一项非常公平的比赛,广受世界各地大学生的喜爱。ACM每年在各大洲会举办区域赛,表现优异的学校将有资格参加世界总决赛。ACM- 阅读全文
posted @ 2013-04-30 20:08 ~~Snail~~ 阅读(781) 评论(5) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页