![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索方向练习
文章平均质量分 82
胖亚亚
这个作者很懒,什么都没留下…
展开
-
G-catch that cow
DescriptionFarmer 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-05-12 23:04:13 · 410 阅读 · 0 评论 -
t -马走格子
DescriptionBackgroundMr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him? The ProblemYour ta原创 2017-05-20 07:53:00 · 292 阅读 · 0 评论 -
求联通块周长
DescriptionTechnicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an obj原创 2017-05-20 07:35:08 · 250 阅读 · 0 评论 -
l-地下城迷宫
DescriptionYou 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原创 2017-05-20 00:29:31 · 230 阅读 · 0 评论 -
i号码牌
DescriptionThe 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原创 2017-05-19 23:44:05 · 288 阅读 · 0 评论 -
B骑士旅行
DescriptionBackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is原创 2017-05-19 18:47:17 · 243 阅读 · 0 评论 -
D-棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及原创 2017-05-17 22:41:20 · 278 阅读 · 0 评论 -
o割绳子
DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It wa原创 2017-05-19 18:43:10 · 288 阅读 · 0 评论 -
S-数独
#include#include#include#include#include#include#include#include#include#define INF 99999999using namespace std;const int MAX=10;char map_[MAX][MAX];int pos[MAX*9][2];//存储是问号原创 2017-05-25 17:13:52 · 490 阅读 · 0 评论 -
Q素数环问题
DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. No原创 2017-05-16 23:27:59 · 297 阅读 · 0 评论 -
P
DescriptionThe 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原创 2017-05-15 22:23:06 · 222 阅读 · 0 评论 -
H-找出n的倍数只能由0和1构成
DescriptionGiven 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-05-11 23:04:50 · 1089 阅读 · 2 评论 -
j-判断能否通过两个字符串得到第三个
DescriptionA 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原创 2017-05-20 08:04:37 · 278 阅读 · 0 评论