
邝斌训练题
文章平均质量分 76
ALizen__
这个作者很懒,什么都没留下…
展开
-
HDU - 1241 Oil Deposits
HDU - 1241 Oil Deposits题目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 that divides the land into numerous square p原创 2021-08-23 22:58:21 · 202 阅读 · 0 评论 -
POJ - 3984 迷宫问题
POJ - 3984 迷宫问题题目定义一个二维数组: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表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个迷宫。数据保证有唯一解。Output左上角到右下角的最短路径,格式如样例原创 2021-08-22 12:17:29 · 137 阅读 · 0 评论 -
FZU - 2150 Fire Game
FZU - 2150 Fire Game题目Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and then they start to fire all the grass. Firstly原创 2021-08-22 12:14:09 · 676 阅读 · 0 评论 -
POJ - 3414 Pots
POJ - 3414 Pots题目You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot i to the drain;POUR(i,j) pour f原创 2021-08-22 12:10:47 · 136 阅读 · 0 评论 -
POJ - 3126 Prime Path
POJ - 3126 Prime Path题目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 is a matter of security to change such things ev原创 2021-08-22 12:05:13 · 160 阅读 · 0 评论 -
POJ - 1426 Find The Multiple
POJ - 1426 Find The Multiple题意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 200 and there is a corresponding m c原创 2021-08-22 12:00:50 · 132 阅读 · 0 评论 -
POJ - 3279 Fliptile
POJ - 3279 Fliptile题目Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤ 15; 1 ≤ N ≤ 15) of square tiles, each of which原创 2021-08-22 11:58:10 · 119 阅读 · 0 评论 -
POJ - 3278 Catch That Cow
POJ - 3278 Catch That Cow题目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 K (0 ≤ K ≤ 100,000) on the same number line原创 2021-08-22 11:54:00 · 133 阅读 · 0 评论 -
POJ-2251 Dungeon Master
POJ-2251 Dungeon Master题目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 north, south, east, west, up or down. You原创 2021-08-22 11:48:38 · 136 阅读 · 0 评论 -
POJ-1321 棋盘问题
POJ-1321 棋盘问题题目在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= n当为-1 -1时表示输入结束。随后的n行描述了棋盘的形状:每行有n个字符,其中原创 2021-08-22 11:44:14 · 139 阅读 · 0 评论 -
POJ1426 Find The Multiple(非bfs解题,暴力过法)
POJ1426-Find The Multiple(非bfs解题)Find The MultipleFind The MultipleGiven 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原创 2021-06-26 21:22:21 · 203 阅读 · 0 评论