
专题一 简单搜索
[kuangbin带你飞] 专题一 简单搜索
白雪黑夜我不停歇
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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. Yife...原创 2020-03-05 12:24:15 · 90 阅读 · 0 评论 -
HDU 1495 非常可乐
题目链接 Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐...原创 2020-03-05 11:29:12 · 189 阅读 · 0 评论 -
HDU 1241 Oil Deposits
题目链接 Problem 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 creat...原创 2020-03-04 15:06:03 · 165 阅读 · 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表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。 Input 一个5 × ...原创 2020-03-04 13:59:06 · 147 阅读 · 0 评论 -
UVA 11627 Fire!
题目链接 Description Joe works in a maze. Unfortunately, portions of the maze havecaught on re, and the owner of the maze neglected to create a reescape plan. Help Joe escape the maze.Given Joe’s locat...原创 2020-03-03 23:20:37 · 162 阅读 · 0 评论 -
POJ 3414 Pots
题目链接 Description 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) ...原创 2020-03-03 20:03:25 · 158 阅读 · 0 评论 -
POJ 3087 Shuffle'm Up
题目链接 Description A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack conta...原创 2020-03-02 20:56:05 · 129 阅读 · 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...原创 2020-03-01 23:50:57 · 103 阅读 · 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 t...原创 2020-03-01 22:05:35 · 168 阅读 · 0 评论 -
POJ 3279 Fliptile
题目链接 Description 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...原创 2020-02-29 00:04:45 · 103 阅读 · 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...原创 2020-02-28 01:07:35 · 139 阅读 · 0 评论 -
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 ...原创 2020-02-27 23:55:50 · 119 阅读 · 0 评论 -
POJ 1321 棋盘问题
题目链接 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <=...原创 2020-02-27 00:12:32 · 171 阅读 · 0 评论