tarjan
文章平均质量分 56
NOIAu
最后一天啦~
展开
-
POJ 1144 Network 裸割点
题意:给一个图,求割点个数#include <cstdio>#include <iostream>#include <cstring>using namespace std;const int MAXN = 110;int low[MAXN], dfn[MAXN], head[MAXN], tail, cnt, timer, n;struct Line{ int to, nxt; }li原创 2017-10-13 14:19:59 · 597 阅读 · 0 评论 -
HDU 4738 Caocao's Bridges 求桥 诸葛亮带着炸弹跑路了
DescriptionCaocao was defeated by Zhuge Liang and Zhou Yu in the battle of Chibi. But he wouldn’t give up. Caocao’s army still was not good at water battles, so he came up with another idea. He built m原创 2017-10-13 18:58:59 · 867 阅读 · 0 评论 -
BZOJ 2427: [HAOI2010]软件安装 Tarjan缩点 + DP
Time Limit: 10 Sec Memory Limit: 128 MB Submit: 1628 Solved: 635Description现在我们的手头有N个软件,对于一个软件i,它要占用Wi的磁盘空间,它的价值为Vi。我们希望从中选择一些软件安装到一台磁盘容量为M计算机上,使得这些软件的价值尽可能大(即Vi的和最大)。但是现在有个问题:软件之间存在依赖关系,即软件i只有在安装了软原创 2017-10-13 22:14:30 · 839 阅读 · 0 评论