随笔分类 - 图论 树
摘要:C Cleaning 题目连接: http://agc010.contest.atcoder.jp/tasks/agc010_c Description There is a tree with N vertices, numbered 1 through N. The i th of the N−
阅读全文
摘要:3732: Network 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=3732 Description 给你N个点的无向图 (1 using namespace std; const int N=200500; int n,m; st
阅读全文
摘要:E. Anton and Tree 题目连接: http://codeforces.com/contest/734/problem/E Description Anton is growing a tree in his garden. In case you forgot, the tree is
阅读全文
摘要:4337: BJOI2015 树的同构 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=4337 Description 树是一种很常见的数据结构。 我们把N个点,N 1条边的连通无向图称为树。 若将某个点作为根,从根开始遍历,则其它的点都
阅读全文
摘要:F. st Spanning Tree 题目连接: http://codeforces.com/contest/723/problem/F Description You are given an undirected connected graph consisting of n vertices
阅读全文
摘要:Warm up 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4612 Description N planets are connected by M bidirectional channels that allow instant transp
阅读全文
摘要:E. Famil Door and Roads 题目连接: http://www.codeforces.com/contest/629/problem/E Description Famil Door’s City map looks like a tree (undirected connecte
阅读全文
摘要:Clarke and tree 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5629 Description Clarke is a patient with multiple personality disorder. One day, Clar
阅读全文
摘要:<center E. Minimum spanning tree for each edge</center 题目连接:http://www.codeforces.com/contest/609/problem/E DescriptionConnected undirected weighted...
阅读全文
摘要:TreeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://poj.org/problem?id=1741DescriptionGive a tree with n vertices,each edge has a length(positive int...
阅读全文
摘要:#142. 【UER #5】万圣节的南瓜灯Time Limit: 20 SecMemory Limit: 256 MB题目连接http://uoj.ac/problem/142Description红包是一个心灵手巧的男孩子。今天是万圣节,红包正在家里制作南瓜灯。这时候一群熊孩子们敲开了红包家的门,...
阅读全文
摘要:D. Super MTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/592/problem/DDescriptionAri the monster is not an ordinary monster. ...
阅读全文
摘要:Bob’s RaceTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4123Description Bob wants to hold a race to encourage pe...
阅读全文
摘要:Building Fire StationsTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3820DescriptionMarjar Uni...
阅读全文
摘要:2588: Spoj 10628. Count on a treeTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=2588Description给定一棵N个节点的树,每...
阅读全文
摘要:J. Computer NetworkTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100114DescriptionThe computer network of “Plunder & Flee Inc.” c...
阅读全文
摘要:LuckyCycleTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=87326#problem/BDescriptionThis problem is ab...
阅读全文
摘要:小希的迷宫Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1272Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Ga...
阅读全文
摘要:#67. 新年的毒瘤Time Limit: 20 SecMemory Limit: 256 MB题目连接http://uoj.ac/problem/67Description辞旧迎新之际,喜羊羊正在打理羊村的绿化带,然后他发现了一棵长着毒瘤的树。这个长着毒瘤的树可以用 n 个结点 m 条无向边的无向...
阅读全文
摘要:2243: [SDOI2011]染色Time Limit: 20 SecMemory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=2243Description给定一棵有n个节点的无根树和m个操作,操作有2类:1、...
阅读全文