------全排列------
大芝士球
一个平凡人心中的波澜壮阔
展开
-
HDU-1015 Safecracker (全排列搜索)
传送门Problem Description=== Op tech briefing, 2002/11/02 06:42 CST === "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, al...原创 2018-05-01 16:49:21 · 166 阅读 · 0 评论 -
HDU-1016 Prime Ring Problem (素数圈) DFS全排列
Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Not...原创 2018-05-06 17:25:03 · 172 阅读 · 0 评论 -
HDU-1716 排列2 (全排列+坑人的输出格式)
先来上一张Presentation Error的惨淡景象: 因为输出格式的错误,debug花了两小时,其间还观察其他博友的写法终于AC 题目传送门 排列2 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s):...原创 2019-01-20 16:45:17 · 640 阅读 · 2 评论