
ACM_暴力枚举
文章平均质量分 84
hackerwin7
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
uva IDCodes 146
题意:求最接近当前串的全排列顺序(字典顺序)的下一个串是否存在,若存在则输出下一个串, 若不存在 则输出"No Successor",不存在即是指当前串已经是全排列顺序的最后一个串了。例如abaacb 下一个全排列串为ababac 而cbbaa 不可能再找到比它大的全排列串了,所以不存在下一个串了。 题解:STL水过,利用next_permutation 默认就是生成字典顺序的全排列串来判断是原创 2012-10-15 09:33:59 · 690 阅读 · 0 评论 -
uva 167 The Sultan's Successors
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=103 题目描述: The Sultan's Successors The Sultan of Nubia h原创 2013-11-14 16:45:51 · 1187 阅读 · 0 评论 -
uva 10344 23 Out of 5
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=1285 题目描述: Problem I 23 Out of 5 Input: standard input Output: standard outp原创 2013-11-14 15:49:21 · 1117 阅读 · 0 评论 -
uva 165 Stamps
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=101 题目描述: Stamps The government of Nova Mareterrania re原创 2013-11-14 16:42:58 · 1391 阅读 · 0 评论 -
uva 10001 Garden of Eden
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=942 题目描述: Garden of Eden Cellular automata are mathematic原创 2013-11-14 16:50:03 · 1441 阅读 · 0 评论 -
uva 301 Transportation
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=237 题目描述: Transportation Ruratania is just ent原创 2013-11-14 15:42:06 · 1576 阅读 · 0 评论 -
uva 10012 How Big Is It?
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=953 题目描述: How Big Is It? Ian's going to California, and h原创 2013-11-14 16:13:49 · 1060 阅读 · 0 评论 -
uva 331 Mapping the Swaps
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=267 题目描述: Mapping the Swaps Sorting an array can be don原创 2013-11-14 15:52:45 · 879 阅读 · 0 评论 -
uva 140 Bandwidth
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=76 题目描述: Bandwidth Given a graph (V,E) where V is a set原创 2013-11-14 16:55:29 · 1005 阅读 · 0 评论 -
hdu 1346 Coconuts, Revisited
题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1346原创 2014-11-07 14:45:12 · 1271 阅读 · 0 评论 -
hdu 1334 Perfect Cubes
题目地址:原创 2014-10-29 11:20:05 · 1553 阅读 · 0 评论 -
uva 592 Island of Logic
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=107&page=show_problem&problem=533 题目描述: Island of Logic The Island of Logic has three kinds of inhab原创 2013-04-18 09:36:31 · 1737 阅读 · 5 评论 -
uva 10123 No Tipping
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=109&page=show_problem&problem=1064 题目描述: Problem A - No Tipping As Archimedes famously observed, if you put原创 2013-11-15 15:09:33 · 1631 阅读 · 0 评论 -
uva GeneratingFastSortedPermutation 10098
题意:生成所给字符串的全排列。 题解:利用STL 全排一下字符串 然后要偷懒的话就用STL的next_permutation,不偷懒的话可以用递归DFS枚举出全排列。 代码: /* uva:Generating Fast, Sorted Permutation */ #include #include #include #include #include #include #incl原创 2012-10-15 09:24:35 · 566 阅读 · 0 评论 -
hdu 1015 Safecracker
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1015 Safecracker Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4847 Accepted Submiss原创 2012-10-15 22:41:34 · 1264 阅读 · 0 评论 -
hdu 4430 Yukari's Birthday
题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=4430 题目: Yukari's Birthday Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 227 A原创 2012-10-22 09:43:46 · 1409 阅读 · 0 评论 -
hdu 1010 Tempter Of TheBone
Tempter of the Bone Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 40763 Accepted Submission(s): 11029 Problem Description The原创 2012-10-18 22:16:30 · 511 阅读 · 0 评论 -
hdu 4422 The Little Girl who Picks Mushrooms
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=4422 题目: The Little Girl who Picks Mushrooms Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s)原创 2012-10-22 22:42:07 · 963 阅读 · 0 评论 -
hdu 1017 A Mathematical Curiosity
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1017 题目描述: A Mathematical Curiosity Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19原创 2013-03-06 22:18:39 · 1664 阅读 · 0 评论 -
uva 110 Meta-Loopless Sorts
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=46 题目描述: Meta-Loopless Sorts Background Sorting holds an im原创 2013-05-03 16:29:56 · 877 阅读 · 0 评论 -
uva 639 Don't Get Rooked
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=580 题目描述: Don't Get Rooked In chess, the rook is a原创 2013-05-17 19:51:38 · 788 阅读 · 0 评论 -
uva 216 Getting in Line
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=152 题目描述: Getting in Line Computer networking requi原创 2013-05-17 15:42:37 · 890 阅读 · 0 评论 -
uva 539 The Settlers of Catan
题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=480 题目描述: The Settlers of Catan Within Settlers of Cata原创 2013-05-21 20:31:58 · 872 阅读 · 0 评论 -
uva 10603 Fill
题目地址: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1544 题目描述: Problem D FILL There are three jugs with a volume of a, b and c liters原创 2015-02-09 22:01:36 · 800 阅读 · 0 评论