摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2544不解释,最短路裸题#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <set>#include <map>#include <cmath>#include <queue>using namespace std;template <class T 阅读全文
posted @ 2013-03-30 02:06
aiiYuu
阅读(113)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=3274题目大意:在一棵树中找一棵包含所有我要的节点的最小生成子树。直接搜索#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <set>#include <map>#include <cmath>#include <queue>using namespace 阅读全文
posted @ 2013-03-30 02:03
aiiYuu
阅读(125)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2660题目大意:n个珠子里面找k个珠子,使得价值最大但重量不超过某一限定值。直接对要不要第i颗珠子进行dfs,搜索过程中注意剪枝。#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <set>#include <map>#include <cmath>#include 阅读全文
posted @ 2013-03-30 01:57
aiiYuu
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号