摘要: In a country, there are a number of cities. Each pair of city is connected by a highway, bi-directional of course. A road-inspector’s task is to trave 阅读全文
posted @ 2015-07-23 17:10 江南何采莲 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Description The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 slidin 阅读全文
posted @ 2015-07-23 14:51 江南何采莲 阅读(147) 评论(0) 推荐(0) 编辑
摘要: E - 广搜记录路径 基础 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3984 E - 广搜记录路径 基础 Submit Status Practic 阅读全文
posted @ 2015-07-22 20:27 江南何采莲 阅读(600) 评论(0) 推荐(0) 编辑
摘要: Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mob 阅读全文
posted @ 2015-07-22 14:45 江南何采莲 阅读(444) 评论(0) 推荐(0) 编辑
摘要: Description Perhaps you all have heard the mythical story about Tower of Hanoi (The details of this story is not required to solve this problem): “The 阅读全文
posted @ 2015-07-22 09:19 江南何采莲 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Submit Status Description A math instructor is too lazy to grade a 阅读全文
posted @ 2015-07-21 21:20 江南何采莲 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From 阅读全文
posted @ 2015-07-21 16:38 江南何采莲 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Submit Status Submit Status Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行 阅读全文
posted @ 2015-07-21 16:14 江南何采莲 阅读(153) 评论(0) 推荐(0) 编辑
摘要: G - DFS(floodfill),推荐 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status G - DFS(floodfill),推荐 Submit Status Descripti 阅读全文
posted @ 2015-07-21 15:00 江南何采莲 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Description A robot has to patrol around a rectangular area which is in a form of mxn grid (m rows and n columns). The rows are labeled from 1 to m. T 阅读全文
posted @ 2015-07-21 11:20 江南何采莲 阅读(206) 评论(0) 推荐(0) 编辑