博客园 首页 私信博主 显示目录 隐藏目录 管理 动画
摘要: 问题描述: 问题描述: 定义一个二维数组: 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 @ 2019-03-07 22:39 BobiBobi波 阅读(1704) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 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) on 阅读全文
posted @ 2019-03-07 13:55 BobiBobi波 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 问题描述: 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 may not be fille 阅读全文
posted @ 2019-03-07 12:18 BobiBobi波 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 问题描述 问题描述 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一 阅读全文
posted @ 2019-03-07 10:42 BobiBobi波 阅读(132) 评论(0) 推荐(0) 编辑