![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单搜索
文章平均质量分 60
CHEN_XU_LING
这个作者很懒,什么都没留下…
展开
-
求大佬改正啊!!HDU1254到底哪里错了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
推箱子Problem Description推箱子是一个很经典的游戏.今天我们来玩一个简单版本.在一个M*N的房间里有一个箱子和一个搬运工,搬运工的工作就是把箱子推到指定的位置,注意,搬运工只能推箱子而不能拉箱子,因此如果箱子被推到一个角上(如图2)那么箱子就不能再被移动了,如果箱子被推到一面墙上,那么箱子只能沿着墙移动.现在给定房间的结构,箱子的位置,搬运工的位置和箱子要被推去的位置,请你计算出搬运工至少要推动箱子多少格.Input输入数据的第一行是一个整数T(1<=T<=20原创 2021-06-05 14:24:14 · 133 阅读 · 1 评论 -
Tempter of the Bone DFS+奇偶减枝
Problem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone was a trap, and he tried desperatel原创 2021-03-18 15:47:59 · 98 阅读 · 0 评论 -
杭电oj 1312 Red and Black
Red and Black直接翻译了哈????问题描述有一个长方形的房间,覆盖着方形瓷砖。每个磁贴的颜色为红色或黑色。一个人站在黑瓦上。从磁贴,他可以移动到四个相邻的磁贴之一。但他不能移动的红色瓷砖,他只能移动的黑色瓷砖。编写一个程序来计算他可以通过重复上述移动可以达到的黑色瓷砖 的数量。输入输入由多个数据集组成。数据集以包含两个正整数 W 和 H 的行开头;W 和 H 分别是 x 方向和 y 方向中的切片数。W 和 H 不超过20。 数据集中有更多的 H 行,每个行都包含 W 字符。每个原创 2020-11-01 20:09:30 · 288 阅读 · 0 评论 -
Oil Deposits
Oil DepositsThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides the land into numerous square plots. It then原创 2020-09-29 21:41:14 · 122 阅读 · 0 评论 -
Catch That Cow
Catch That CowFarmer John has been informed of the location of a fugitive cow andwants to catch her immediately. He starts at a point N (0 ≤ N ≤100,000) on a number line and the cow is at a point K (0 ≤ K ≤100,000) on the same number line. Farmer John原创 2020-09-28 21:45:09 · 76 阅读 · 0 评论 -
Dungeon Master 简单搜索
Dungeon MasterYou 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 filled with rock. It takes one minute to move one unit north, south, east, west, up or down. You cannot move原创 2020-09-27 09:10:10 · 135 阅读 · 0 评论