![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bfs
leifjacky
这个作者很懒,什么都没留下…
展开
-
SZU 2015 Winter Training Day#2
A - N皇后问题Time Limit:1000MS MemoryLimit:32768KB 64bit IO Format:%I64d& %I64uSubmit StatusDescription在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出原创 2015-01-18 16:49:11 · 371 阅读 · 0 评论 -
HDU 2102 - A计划
I - A计划Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2102Appoint description: System Crawler (2016-01-20)Description原创 2016-01-21 11:32:03 · 311 阅读 · 0 评论 -
HDU 3567 - Eight II
B - Eight IITime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 3567Appoint description: System Crawler (2016-01-18)Descriptio原创 2016-01-20 20:46:29 · 587 阅读 · 0 评论 -
POJ 2243 - Knight Moves
B - Knight MovesTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 2243Appoint description: System Crawler (2016-01-04)System Crawl原创 2016-01-19 13:49:50 · 291 阅读 · 0 评论 -
HDU 1195 - Open the Lock
A - Open the LockTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1195Appoint description: System Crawler (2016-01-13)Descrip原创 2016-01-19 00:17:49 · 289 阅读 · 0 评论 -
HDU 1043 - Eight
A - EightTime Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1043Appoint description: System Crawler (2016-01-16)Description原创 2016-01-18 15:06:53 · 342 阅读 · 0 评论 -
UVA 11624 - Fire!
Problem B: Fire!Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help Joe escape the maze.Giv原创 2016-01-17 02:14:05 · 274 阅读 · 0 评论 -
FZU 2150 - Fire Game
I - Fire GameTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFat brother and Maze are playing a kind of special (hentai) game on原创 2016-01-17 00:52:25 · 228 阅读 · 0 评论 -
POJ 3414 - Pots
H - PotsTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are given two pots, having the volume of A and B liters respective原创 2016-01-16 22:50:49 · 314 阅读 · 0 评论 -
POJ 3126 - Prime Path
F - Prime PathTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe ministers of the cabinet were quite upset by the message fro原创 2016-01-15 13:54:22 · 275 阅读 · 0 评论 -
POJ1426 - Find The Multiple
转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1303946967大致题意:给出一个整数n,(1 解题思路:首先暴力枚举肯定是不可能的 1000ms 想不超时都难,而且枚举还要解决大数问题。。要不是人家把这题放到搜索,怎么也想不到用BFS。。。 解题方法: BFS+同余模转载 2016-01-14 08:37:37 · 263 阅读 · 0 评论 -
HDU2717 - Catch That Cow
D - FliptileTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFarmer John knows that an intellectually satisfied cow is a happy原创 2016-01-08 21:30:20 · 399 阅读 · 0 评论 -
POJ 2251 - Dungeon Master
B - Dungeon MasterTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are trapped in a 3D dungeon and need to find the quickes原创 2016-01-05 10:57:51 · 309 阅读 · 0 评论 -
Gym 100187E - Two Labyrinths
A labyrinth is the rectangular grid, each of the cellsof which is either free or wall, and it's possible to move only between freecells sharing a side.Constantine and Mike are the world leaders ofco原创 2015-07-27 12:28:32 · 700 阅读 · 0 评论 -
CodeForces 362A - Two Semiknights Meet
A boy Petya loves chess very much. He even came up with a chess piece ofhis own, a semiknight. The semiknight can move in any of these four directions: 2 squares forward and 2 squares to the right,原创 2015-07-27 12:48:17 · 453 阅读 · 0 评论 -
HDU3533 - Escape
D - EscapeTime Limit:10000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 3533Appoint description: System Crawler (2016-01-16)Description原创 2016-01-22 19:12:16 · 641 阅读 · 0 评论