搜索
CXY_Likescoding
不失情怀,不忘初心!
展开
-
POJ 2251 Dungeon Master
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 may not be filled with rock. It takes one minute to move one unit原创 2017-01-20 17:13:49 · 180 阅读 · 0 评论 -
POJ 1321 棋盘问题
Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n 当为-原创 2017-01-20 13:21:12 · 241 阅读 · 0 评论 -
HDU 2612 Find a way
Problem Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki. Yifenfe原创 2017-01-20 18:39:03 · 221 阅读 · 0 评论 -
HDU 1495 非常可乐
Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S Input 三个整数 : S 可乐的体积 , N 和 M是两原创 2017-01-20 18:03:35 · 671 阅读 · 0 评论 -
POJ 1562 Oil Deposits
Description The 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 th原创 2017-01-20 17:59:12 · 251 阅读 · 0 评论 -
UVa 11624
题目链接:https://vjudge.net/problem/UVA-11624 这道题最坑的是WA了一天后,重念题才发现人的起点只有一个,而火不止一个!改正后用了两个队列,每次火先扩一层,人再扩一层,方法仅供参考。后也尝试了网上给的一个队列的解法,代码如下: //两个队列 #include #include #include using namespace std; boo原创 2017-01-20 17:56:07 · 402 阅读 · 0 评论 -
POJ 3984 迷宫问题
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表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。原创 2017-01-20 17:35:58 · 303 阅读 · 0 评论 -
POJ 3126 Prime Path
Description 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-digit room numbers on their offices. — It i原创 2017-01-20 17:29:02 · 191 阅读 · 0 评论 -
POJ 1426 Find The Multiple
Description 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 and 1. You may assume that n is not greater than原创 2017-01-20 17:24:38 · 291 阅读 · 0 评论 -
POJ 3278 Catch That Cow
Description 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 a number line and the cow is at a point原创 2017-01-20 17:19:15 · 239 阅读 · 0 评论 -
POJ 1753 Flip Game
Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 41203 Accepted: 17892 Description Flip game is played on a rectangular 4x4 field with two-sided pie原创 2016-10-31 22:26:47 · 319 阅读 · 0 评论