摘要: 题很水。。。但我被坑惨了 。。。。。。。。 。。。。。.。。。。。 。。。。。。。 构成差分约束系统时,1.如果在所有点外添加一个超级源0号点,并使得超级源到所有其他点的距离为0,那么最终求出的0号点到其他所有原始点的最短距离就是本系统的一个可行解,且可行解之间的差距最小. 2.如果初始时不添加超级 阅读全文
posted @ 2018-07-25 20:53 lmjer 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 就不用讲了吧 0-1分数规划+判断图的负环 阅读全文
posted @ 2018-07-25 16:04 lmjer 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1791: [Ioi2008]Island 岛屿 Description 你将要游览一个有N个岛屿的公园。从每一个岛i出发,只建造一座桥。桥的长度以Li表示。公园内总共有N座桥。尽管每座桥由一个岛连到另一个岛,但每座桥均可以双向行走。同时,每一对这样的岛屿,都有一艘专用的往来两岛之间的渡船。 相对于 阅读全文
posted @ 2018-07-25 08:46 lmjer 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std; typedef long long ll; struct my{ int v; int w; int next; }; const int maxn=100000+10; int t,f[max... 阅读全文
posted @ 2018-07-25 08:17 lmjer 阅读(260) 评论(0) 推荐(0) 编辑