1.基础搜索
而今_迈步从头越
额,萌新一枚~
展开
-
F-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原创 2017-07-24 20:37:10 · 204 阅读 · 0 评论 -
G-POJ-3984 迷宫问题
POJ-3984 |Time Limit: 1000MS | Memory Limit: 65536K| |—– 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原创 2017-07-30 16:11:46 · 256 阅读 · 0 评论 -
A-POJ-1321 棋盘问题
POJ-1321 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n、k,用一个空格隔开,表示了将在一个n*n的矩阵内描原创 2017-07-24 16:46:44 · 336 阅读 · 0 评论 -
B-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 K原创 2017-07-24 20:15:59 · 187 阅读 · 0 评论 -
C-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 tha原创 2017-07-24 20:23:17 · 168 阅读 · 0 评论 -
D-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原创 2017-07-24 20:27:32 · 221 阅读 · 0 评论 -
E-POJ-3087 Shuffle'm Up
POJ-3087 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原创 2017-07-24 20:35:03 · 228 阅读 · 0 评论 -
六度空间
题目描述 在数学领域的有一个神秘迷人的猜想叫做六度空间理论: 你和任何一个陌生人之间所间隔的人不会超过六个,也就是说,最多通过五个中间人你就能够认识任何一个陌生人.PP是北京化工大学的一只普通单身汪,他每天总是早早的起床,然后屁颠屁颠的背上自己的小书包高高兴兴的去上课.PP觉得这样的生活很幸福. 然而周围总有一些可恶的邪恶汪在PP周围秀恩爱,喂PP吃狗粮.这打击到了PP,PP很生气,决心也找一个同原创 2017-11-26 20:09:42 · 267 阅读 · 0 评论