
图
文章平均质量分 82
974792789
不要在能吃苦的年纪追求安逸。
展开
-
Knight Moves uva
Knight Moves A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set o原创 2014-05-14 17:26:48 · 495 阅读 · 0 评论 -
Eight+POJ+八数码问题+bfs+dbfs+字符串哈希+全排列哈希
EightTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 24515 Accepted: 10812 Special JudgeDescriptionThe 15-puzzle has been around for over 100 years;原创 2014-08-20 14:06:30 · 630 阅读 · 0 评论 -
Foreign Exchange uva+出度与入度
Foreign ExchangeInput: standard inputOutput: standard outputTime Limit: 1 secondYour non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a ver原创 2014-07-15 19:40:34 · 802 阅读 · 2 评论 -
Catenyms+欧拉回路/欧拉路+并查集+POJ
欧拉路、欧拉回路的判断及其路径输出,并查集的应用,对字符串字典序的排序。原创 2014-08-05 15:55:16 · 1039 阅读 · 0 评论 -
The Necklace+uva+求欧拉回路并输出路径
The NecklaceTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu[Submit] [Go Back] [Status] Description Problem D: The Neck原创 2014-08-05 12:52:59 · 484 阅读 · 0 评论 -
Graph Construction uva+贪心+Havel-Hakimi定理
Graph ConstructionTime Limit2 SecondsGraph is a collection of edges E and vertices V. Graph has a wide variety of applications in computer. There are different ways to repres原创 2014-07-17 23:01:03 · 623 阅读 · 0 评论 -
Dungeon Master uva BFS
Dungeon Master You are trapped in a 3D dungeon and need to find the quickest way out!The dungeon is composedof unit cubes which may or may not be filled with rock. It takes one minuteto mo原创 2014-05-14 18:28:53 · 443 阅读 · 0 评论 -
Slash Maze uva
Slash Maze By filling a rectangle with slashes (/) and backslashes (), youcan generate nice little mazes. Here is an example:As you can see, paths in the maze cannot branch, so the w原创 2014-05-14 09:58:36 · 502 阅读 · 0 评论 -
Oil Deposits uva DFS
Oil Deposits The GeoSurvComp geologic survey company is responsible for detectingunderground oil deposits. GeoSurvComp works with one large rectangularregion of land at a time, and creates原创 2014-05-13 11:24:57 · 644 阅读 · 0 评论 -
Play on Words uva DFS+欧拉回路
Play on WordsSome of the secret doorscontain a very interesting word puzzle. The team of archaeologists has tosolve it to open that doors. Because there is no other way to open the doors,the puzzle原创 2014-05-18 00:25:10 · 562 阅读 · 0 评论 -
XYZZY uva BFS+DFS
Problem D: XYZZYADVENT: /ad�vent/, n.The prototypical computer adventure game, first designed by Will Crowther on the PDP-10 in the mid-1970s as an attempt at computer-refereed fantasy gaming,原创 2014-05-16 00:06:08 · 785 阅读 · 0 评论 -
Bicoloring uva DFS
Bicoloring In 1976 the ``Four Color Map Theorem" was proven with the assistance of acomputer. This theorem states that every map can be colored using only fourcolors, in such a way that no原创 2014-05-17 01:59:48 · 449 阅读 · 0 评论 -
Matrix Multiplication+adream+矩阵相乘
Matrix MultiplicationTime Limit: 2000/1000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others)Problem Description Let us consider undirected graph G = {V; E} which has N vertice原创 2014-10-01 20:59:55 · 453 阅读 · 0 评论