随笔分类 - 深搜
河南省第四届ACM程序设计大赛
摘要:A: 序号互换 #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <stack> #include <queue> #include <vect
阅读全文
(区间dp 或 记忆化搜素 )Brackets -- POJ -- 2955
摘要:http://poj.org/problem?id=2955DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular b...
阅读全文
(记忆化搜索 )The Triangle--hdu --1163
摘要:http://poj.org/problem?id=1163Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that...
阅读全文
( 递归 )Fractal -- POJ -- 2083
摘要:http://poj.org/problem?id=2083FractalTime Limit:1000MSMemory Limit:30000KTotal Submissions:8317Accepted:3957DescriptionA fractal is an object or quant...
阅读全文
(BestCoder Round #64 (div.2))Array
摘要:BestCoder Round #64 (div.2)Array问题描述Vicky是个热爱数学的魔法师,拥有复制创造的能力。一开始他拥有一个数列{1}。每过一天,他将他当天的数列复制一遍,放在数列尾,并在两个数列间用0隔开。Vicky想做些改变,于是他将当天新产生的所有数字(包括0)全加1。Vick...
阅读全文
(DFS)展开字符串 -- hdu -- 1274
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1274展开字符串Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):...
阅读全文
(深搜)棋盘问题 -- poj -- 1321
摘要:链接:http://poj.org/problem?id=1321Time Limit:1000MSMemory Limit:10000KTotal Submissions:28899Accepted:14307Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区...
阅读全文
(深搜)Oil Deposits -- hdu -- 1241
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1241Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1...
阅读全文
(全排列)Ignatius and the Princess II -- HDU -- 1027
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1027Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/O...
阅读全文
(深搜)Sum It Up -- poj --1564
摘要:链接:http://poj.org/problem?id=1564http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88230#problem/F给了一个数 m,给一个由 n 个数组成的数组 a[] , 求和为 m 的 a[] 的子集pos ...
阅读全文
浙公网安备 33010602011771号