上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页

2015年8月6日

HDU 1698 Just a Hook(线段树lazy成段更新)

摘要: Just a Hook Problem Description In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up 阅读全文

posted @ 2015-08-06 20:04 焰 阅读(162) 评论(0) 推荐(0) 编辑

ZOJ 1671 Walking ant(bfs)

摘要: Walking AntTime Limit: 2 Seconds Memory Limit: 65536 KBAnts are quite diligent. They sometimes build their nests beneath flagstones.Here, an ant is w... 阅读全文

posted @ 2015-08-06 16:15 焰 阅读(143) 评论(0) 推荐(0) 编辑

HDU 1728 逃离迷宫(bfs)

摘要: 逃离迷宫Problem Description 给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中... 阅读全文

posted @ 2015-08-06 16:10 焰 阅读(183) 评论(0) 推荐(0) 编辑

2015年8月5日

POJ 2251 Dungeon Master(bfs)

摘要: Dungeon MasterDescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may... 阅读全文

posted @ 2015-08-05 21:23 焰 阅读(134) 评论(0) 推荐(0) 编辑

POJ 3275 Catch That Cow(bfs)

摘要: Catch That CowDescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0... 阅读全文

posted @ 2015-08-05 21:19 焰 阅读(210) 评论(0) 推荐(0) 编辑

POJ 3984 迷宫问题(bfs+路径记录)

摘要: 迷宫问题Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着... 阅读全文

posted @ 2015-08-05 21:17 焰 阅读(164) 评论(0) 推荐(0) 编辑

2015年8月4日

POJ 3620 Avoid The Lakes

摘要: Avoid The LakesDescriptionFarmer John's farm was flooded in the most recent storm, a fact only aggravated by the information that his cows are deathly... 阅读全文

posted @ 2015-08-04 23:57 焰 阅读(136) 评论(0) 推荐(0) 编辑

ZOJ 2100 Seeding

摘要: SeedingProblem Description It is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rectangle with n * m squar... 阅读全文

posted @ 2015-08-04 23:54 焰 阅读(142) 评论(0) 推荐(0) 编辑

POJ 2245 Lotto

摘要: LottoDescriptionIn the German Lotto you have to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn... 阅读全文

posted @ 2015-08-04 23:51 焰 阅读(165) 评论(0) 推荐(0) 编辑

HDU 1181 变形课

摘要: 变形课Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好... 阅读全文

posted @ 2015-08-04 23:48 焰 阅读(141) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页

导航