搜索
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 · 204 阅读 · 0 评论 -
Poj 1753 Flip Game
时隔四年重新开始刷poj,还是原来的味道,爷青回hhhhDescriptionFlip 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 · 153 阅读 · 0 评论 -
八数码问题(hash+折半搜索)
八数码1 问题描述有 3×3共 9个格子,其中有一个格子是空的,其他格子填满了 1∼8之间不同的数字。通过移动格子可以改变数字和空格的位置,现在给你初状态和末状态,请你给出最少的移动步数。2 输入格式输入文件名为 eight.in。给出 6 行,每行有3 个数,每两个数用一个空格空开,每个数在0∼8之间,其中 0表示空格。前 3 行表原创 2016-11-16 22:40:11 · 666 阅读 · 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 · 315 阅读 · 0 评论
分享