上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 35 下一页
摘要: " 题目链接 " Problem Description 在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的: 有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少? 已经告诉你了,这是个DP的题目,你能AC吗? Input 输入数据首先包 阅读全文
posted @ 2017-04-25 21:47 渡…… 阅读(161) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的 阅读全文
posted @ 2017-04-25 21:35 渡…… 阅读(148) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite tim 阅读全文
posted @ 2017-04-25 21:14 渡…… 阅读(160) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " 题目描述 变态杀人狂三师弟想到一个杀人游戏 游戏规则如下: 三师弟抓了n个人 对这n个人进行编号,分别从1到n,排成一个圈,顺时针从1开始数到m,数到m的人被杀,剩下的人继续游戏,活到最后的一个人是胜利者。请输出每次被杀的人的编号 注意最后一个活着的人不用输出 <! more 输入 阅读全文
posted @ 2017-04-25 21:07 渡…… 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point 阅读全文
posted @ 2017-04-25 20:52 渡…… 阅读(376) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description 每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱的机房签 到、签离记录,请根据记录找出当天开门和关门的人。 <! more Input 测试输入的第一行给出记录的总天数N ( 0 )。下面列出了N天的记录。 每天的记录 阅读全文
posted @ 2017-04-25 20:42 渡…… 阅读(273) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds 阅读全文
posted @ 2017-04-25 20:34 渡…… 阅读(172) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意 阅读全文
posted @ 2017-04-25 20:26 渡…… 阅读(315) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = 阅读全文
posted @ 2017-04-25 20:07 渡…… 阅读(145) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a b 阅读全文
posted @ 2017-04-25 19:58 渡…… 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 35 下一页