上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: DescriptionA sequence of N positive integers (10 >T;33 while(T--)34 {35 cin>>n>>S;36 for(int i=0;i>a[i];38 solve();39 ... 阅读全文
posted @ 2014-09-01 18:53 daydaycode 阅读(189) 评论(0) 推荐(0) 编辑
摘要: time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Dima misbehaved during a math lesson a lot... 阅读全文
posted @ 2014-08-21 09:48 daydaycode 阅读(205) 评论(0) 推荐(0) 编辑
摘要: DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised t... 阅读全文
posted @ 2014-08-21 00:52 daydaycode 阅读(209) 评论(0) 推荐(0) 编辑
摘要: xiaoz 征婚,首先输入M,表示有M个操作。借下来M行,对每一行 Ih a l I 表示有一个MM报名,H是高度, a是活泼度,L是缘分。或 Q h1 h2 a1 a2 求出身高在h1 h2 活泼度在a1 a2之间的最大缘分值。 1 #include 2 #include 3... 阅读全文
posted @ 2014-08-20 10:40 daydaycode 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ProblemIn a kingdom there are prison cells (numbered 1 toP) built to form a straight line segment. Cells numberiandi+1are adjacent, and prisoners in a... 阅读全文
posted @ 2014-08-19 11:51 daydaycode 阅读(239) 评论(0) 推荐(0) 编辑
摘要: DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home ... 阅读全文
posted @ 2014-08-16 10:33 daydaycode 阅读(267) 评论(0) 推荐(0) 编辑
摘要: One of the greatest alchemists of the lower Middle Renaissance, Algernon da Vinci (one of Leonardo's lesserknown cousins), had the foresight to constr... 阅读全文
posted @ 2014-08-15 00:24 daydaycode 阅读(254) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located... 阅读全文
posted @ 2014-08-14 22:43 daydaycode 阅读(146) 评论(0) 推荐(0) 编辑
摘要: DescriptionChristine and Matt are playing an exciting game they just invented: the Number Game. The rules of this game are as follows.The players take... 阅读全文
posted @ 2014-08-14 17:09 daydaycode 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 按照题目的四个条件去找就行了,小问题的解可以求出答题的解dp[i][j]=max(dp[i][k]+dp[k+1][j],dp[i-1][j-1]+2) 1 #include"iostream" 2 #include"cstring" 3 #include"cstdio" 4 using names... 阅读全文
posted @ 2014-08-14 00:04 daydaycode 阅读(333) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页