上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 40 下一页

2013年6月1日

MUTC 2 A - Hero 状态压缩dp

摘要: HeroTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1869Accepted Submission(s): 868Problem DescriptionWhen playing DotA with god-like rivals and pig-like team members, you have to face an embarrassing situation: All your teammates are killed, and y 阅读全文

posted @ 2013-06-01 16:42 电子幼体 阅读(153) 评论(0) 推荐(0) 编辑

2013年5月30日

MUTC 1 B - Hourai Jeweled 树形dp?

摘要: Hourai JeweledTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 163840/163840 K (Java/Others)Total Submission(s): 810Accepted Submission(s): 291Problem DescriptionKaguya Houraisan was once a princess of the Lunarians, a race of people living on the Moon. She was exiled to Earth over a thousand yea 阅读全文

posted @ 2013-05-30 16:18 电子幼体 阅读(169) 评论(0) 推荐(0) 编辑

MUTC 1 E - Seikimatsu Occult Tonneru 枚举 网络流

摘要: Seikimatsu Occult TonneruTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1341Accepted Submission(s): 313Problem DescriptionDuring the world war, to avoid the upcoming Carpet-bombing from The Third Reich, people in Heaven Empire went to Great Tunne 阅读全文

posted @ 2013-05-30 09:48 电子幼体 阅读(149) 评论(0) 推荐(0) 编辑

2013年5月29日

MUTC 1 A - Divide Chocolate 方案统计DP

摘要: Divide ChocolateTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1271Accepted Submission(s): 604Problem DescriptionIt is well known that claire likes dessert very much, especially chocolate. But as a girl she also focuses on the intake of calories e 阅读全文

posted @ 2013-05-29 10:49 电子幼体 阅读(196) 评论(0) 推荐(0) 编辑

MUTC 1 D - Matrix 线性代数 网络流

摘要: MatrixTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 825Accepted Submission(s): 212Problem DescriptionLet A be a 1*N matrix, and each element of A is either 0 or 1. You are to find such A that maximize D=(A*B-C)*AT, where B is a given N*N matrix w 阅读全文

posted @ 2013-05-29 08:03 电子幼体 阅读(186) 评论(0) 推荐(0) 编辑

白书上的Dinic模板

摘要: #include #include #include #include #include #include #include #include #include #include using namespace std; const int maxn=1111; const int maxm=1111111; const int INF=1e9; struct Edge{ int from,to,cap,flow; }; struct Dinic{ int n,m,s,t; vectoredges; vectorG[maxn]; ... 阅读全文

posted @ 2013-05-29 07:12 电子幼体 阅读(128) 评论(0) 推荐(0) 编辑

2013年5月28日

白书上的Bellman-Ford模板

摘要: #include #include #include #include #include #include #include #include #include #include using namespace std; const int maxn=11111; struct Edge{ int from,to; int dist; }; struct BellmanFord{ int n,m; vector edges; vector G[maxn]; bool inq[maxn]; int d[maxn]... 阅读全文

posted @ 2013-05-28 08:20 电子幼体 阅读(164) 评论(0) 推荐(0) 编辑

Uva 11090 - Going in Cycle!! bellman-ford 负权环 二分

摘要: IIUPC2006Problem G: Going in Cycle!!Input: standard inputOutput: standard outputYou are given a weighted directed graph withnvertices andmedges. Each cycle in the graph has a weight, which equals to sum of its edges. There are so many cycles in the graph with different weights. In this problem we wa 阅读全文

posted @ 2013-05-28 08:19 电子幼体 阅读(334) 评论(0) 推荐(0) 编辑

Uva 10917 - Walk Through the Forest 最短路

摘要: Problem C: A Walk Through the ForestJimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to walk home. To make things even nicer, his office is on one side of a forest, and his house is on the other. A nice wa 阅读全文

posted @ 2013-05-28 02:05 电子幼体 阅读(155) 评论(0) 推荐(0) 编辑

2013年5月23日

Uva 11374 - Airport Express 最短路

摘要: Problem D: Airport ExpressIn a small city called Iokh, a train service,Airport-Express, takes residents to the airport more quickly than other transports. There are two types of trains in Airport-Express, theEconomy-Xpressand theCommercial-Xpress. They travel at different speeds, take different rout 阅读全文

posted @ 2013-05-23 12:19 电子幼体 阅读(131) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 40 下一页

导航