码迷,mamicode.com
首页 >  
搜索关键字:poj3272    ( 1个结果
【POJ3272】Cow Traffic 拓扑DP
题意:给一个有向图,边严格由编号小的点到编号大的点,现在计数所有的极大路径,求每条边遍历次数的最大值。 题解:正着扫一遍,倒着扫一遍,dp值相乘。 #include #include #include #define N 5050 #define M 50500 using namespace std; struct KSD { int v,next; long long cnt; ...
分类:其他好文   时间:2014-11-07 16:59:33    阅读次数:225
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!