搜索
gravii
中二的高阶版
展开
-
Poj 2965 The Pilots Brothers‘ refrigerator
The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handles on the refrigerator door. Every handle can be in one of two states: open or closed. The refrigerator is open only .原创 2020-07-24 03:51:52 · 142 阅读 · 0 评论 -
Poj 1753 Flip Game
时隔四年重新开始刷poj,还是原来的味道,爷青回hhhh Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white原创 2020-07-24 03:25:35 · 112 阅读 · 0 评论 -
八数码问题(hash+折半搜索)
八数码 1 问题描述 有 3×3 共 9 个格子,其中有一个格子是空的,其他格子填满了 1∼8 之间不同的数字。通过 移动格子可以改变数字和空格的位置,现在给你初状态和末状态,请你给出最少的移动步数。 2 输入格式 输入文件名为 eight.in。 给出 6 行,每行有 3 个数,每两个数用一个空格空开,每个数在 0∼8 之间,其中 0 表示空 格。 前 3 行表原创 2016-11-16 22:40:11 · 599 阅读 · 0 评论 -
Poj 3278 BFS(不多说话) 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原创 2016-11-13 18:39:34 · 265 阅读 · 0 评论