摘要: A Contesting DecisionTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 2519Accepted: 1786DescriptionJudging a programming contest is hard work,... 阅读全文
posted @ 2014-08-14 10:08 Fighting_frank 阅读(128) 评论(0) 推荐(0) 编辑
摘要: DoublesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 19154Accepted: 11064DescriptionAs part of an arithmetic competency program, your stude... 阅读全文
posted @ 2014-08-14 10:05 Fighting_frank 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Common SubsequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:37551Accepted:15023DescriptionA subsequence of a given sequence is the given s... 阅读全文
posted @ 2014-07-17 22:50 Fighting_frank 阅读(205) 评论(0) 推荐(0) 编辑
摘要: The TriangleTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 36811Accepted: 22048Description73 88 1 02 7 4 44 5 2 6 5(Figu... 阅读全文
posted @ 2014-07-17 16:16 Fighting_frank 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 滑雪Time Limit:1000MSMemory Limit:65536KTotal Submissions:74066Accepted:27418DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次... 阅读全文
posted @ 2014-06-20 11:22 Fighting_frank 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Beat the Spread!Time Limit:1000MSMemory Limit:65536KTotal Submissions:17794Accepted:8484DescriptionSuperbowl Sunday is nearly here. In order to pass t... 阅读全文
posted @ 2014-06-20 11:17 Fighting_frank 阅读(180) 评论(0) 推荐(0) 编辑
摘要: To the MaxTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 39913Accepted: 21099DescriptionGiven a two-dimensional array of positive and negati... 阅读全文
posted @ 2014-06-14 13:22 Fighting_frank 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Max SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 138410Accepted Submission(s): 32144Problem ... 阅读全文
posted @ 2014-06-13 19:57 Fighting_frank 阅读(244) 评论(0) 推荐(0) 编辑
摘要: ExponentiationTime Limit: 500MSMemory Limit: 10000KTotal Submissions: 132438Accepted: 32334DescriptionProblems involving the computation of exact val... 阅读全文
posted @ 2014-06-13 10:17 Fighting_frank 阅读(3203) 评论(0) 推荐(0) 编辑
摘要: 图的深度优先遍历是树的前序遍历的应用,其实就是一个递归的过程,我们人为的规定一种条件,或者说一种继续遍历下去的判断条件,只要满足我们定义的这种条件,我们就遍历下去,当然,走过的节点必须记录下来,当条件不满足后,我们就return,回到上一层,换个方向继续遍历。模板: 1 //邻接矩阵存储方式 2 b... 阅读全文
posted @ 2014-06-07 21:29 Fighting_frank 阅读(241) 评论(0) 推荐(0) 编辑