上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
摘要: http://www.bnuoj.com/bnuoj/problem_show.php?pid=10792被诅咒的代码Time Limit:1000msMemory Limit:65536KB64-bit integer IO format:%lld Java class name:MainPrevSubmitStatusStatisticsDiscussNextFont Size:+-Type:Tag it!程序猿是一种近几十年来出现的新物种,是工业革命的产物。英文(Programmer Monkey)是一种非常特殊的、可以从事程序开发、维护的动物。一般分为程序设计猿和程序编码猿,但两者的界 阅读全文
posted @ 2013-09-26 19:41 芷水 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 最优子矩阵 1 /*对于一个矩阵而言,如果我们将连续k行的元素纵向相加,并对相加后所得的数列求连续最大和,则此连 2 3 续最大和就是一个行数为k的最优子矩阵! 4 */ 5 6 #include 7 using namespace std; 8 int rec[101][101]; 9 //int m=0;10 //void get(int ans[101],int nums)11 //{12 // int b = 0;13 // for(int i=0;im)20 // m = b;21 // }22 //}23 int main()24 {25... 阅读全文
posted @ 2013-09-10 20:14 芷水 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1313: ZZY的宠物Time Limit: 2 SecMemory Limit: 128 MBSubmit: 114Solved: 59[Submit][Status][Web Board]DescriptionZZY领养了一对刚刚出生的不知名小宠物..巨萌巨可爱!!...小宠物的生命为5个单位时间并且不会在中间出意外翘辫子(如: 从0出生能活到5但活不到6)..小宠物经过2个单位时间成熟..刚刚成熟的一对小宠物能立即生育6只新的小宠物(如: 从0出生的一对在2时成熟并进行第一次生育)...小宠物是很忠诚的..不会在中途换伴侣..每对小宠物生育一次这一对的生育能力就会降低2个..也就是说一 阅读全文
posted @ 2013-09-02 11:20 芷水 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Problem 1692 Key problemAccept: 103 Submit: 553 Time Limit: 1000 mSec Memory Limit : 32768 KBProblem DescriptionWhenever rxw meets Coral, he requires her to give him the laboratory key. Coral does not want to give him the key, so Coral ask him one question. if rxw can solve the problem, she will giv 阅读全文
posted @ 2013-08-31 16:25 芷水 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 奥运Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1936Accepted Submission(s): 491Problem Description北京迎来了第一个奥运会,我们的欢呼声响彻中国大地,所以今年的奥运金牌 day day up!比尔盖兹坐上鸟巢里,手里摇着小纸扇,看的不亦乐乎,被俺们健儿的顽强拼搏的精神深深的感动了。反正我的钱也多的没地方放了,他对自己说,我自己也来举办一个奥运会,看谁的更火。不过他的奥运会很特别:1 参加人员必 阅读全文
posted @ 2013-08-29 18:15 芷水 阅读(187) 评论(0) 推荐(0) 编辑
摘要: How many ways??Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1031Accepted Submission(s): 341Problem Description春天到了, HDU校园里开满了花, 姹紫嫣红, 非常美丽. 葱头是个爱花的人, 看着校花校草竞相开放, 漫步校园, 心情也变得舒畅. 为了多看看这迷人的校园, 葱头决定, 每次上课都走不同的路线去教室, 但是由于时间问题, 每次只能经过k个地方, 比方说, 这次葱头决定 阅读全文
posted @ 2013-08-29 18:10 芷水 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Problem 1683 纪念SlingShotAccept: 361Submit: 1287Time Limit: 1000 mSecMemory Limit : 32768 KB Problem Description已知 F(n)=3 * F(n-1)+2 * F(n-2)+7 * F(n-3),n>=3,其中F(0)=1,F(1)=3,F(2)=5,对于给定的每个n,输出F(0)+ F(1)+ …… + F(n) mod 2009。 Input第一行是一整数m,代表总共有m个cases。 Output对于每个case,输出一行。格式见样例,冒号后有一个空格。 Sample Inp 阅读全文
posted @ 2013-08-29 16:22 芷水 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Mod TreeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3543Accepted Submission(s): 917Problem DescriptionThe picture indicates a tree, every node has 2 children.The depth of the nodes whose color is blue is 3; the depth of the node whose color is 阅读全文
posted @ 2013-08-27 08:48 芷水 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Clever YTime Limit:5000MSMemory Limit:65536KTotal Submissions:5744Accepted:1376DescriptionLittle Y finds there is a very interesting formula in mathematics:XYmod Z = KGivenX,Y,Z, we all know how to figure outKfast. However, givenX,Z,K, could you figure outYfast?InputInput data consists of no more th 阅读全文
posted @ 2013-08-27 08:41 芷水 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Discrete LoggingTime Limit:5000MSMemory Limit:65536KTotal Submissions:2831Accepted:1391DescriptionGiven a prime P, 2 28 #include 29 #include 30 #include 31 #include 32 using namespace std; 33 34 typedef __int64 LL; 35 const int MAX=499991; 36 LL A,B,C; 37 bool Hash[MAX]; 38 LL idx[MAX]; 39 LL val[.. 阅读全文
posted @ 2013-08-27 08:35 芷水 阅读(567) 评论(0) 推荐(1) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页