摘要: 算法:BFS Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape pla... 阅读全文
posted @ 2016-01-03 18:12 (慎独) 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 算法:广搜(BFS); Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or ma... 阅读全文
posted @ 2016-01-03 16:41 (慎独) 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 算法:BFS Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) ... 阅读全文
posted @ 2016-01-03 13:25 (慎独) 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 算法:BFS The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-d... 阅读全文
posted @ 2016-01-03 12:24 (慎独) 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 算法:深搜(水题); Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0... 阅读全文
posted @ 2016-01-03 11:02 (慎独) 阅读(493) 评论(0) 推荐(0) 编辑