
差分约束系统
Spy97
这个作者很懒,什么都没留下…
展开
-
2019 CCPC哈尔滨 A Artful Paintings
#pragma GCC optimize(3)//手动Ox优化#include<bits/stdc++.h>#define N 3010#define inf 0x3f3f3f3f#define eps 1e-5#define pi 3.141592653589793#define mod 998244353#define P 1000000007#define LL ...原创 2019-11-21 21:04:27 · 517 阅读 · 0 评论 -
HDU 6252 CCPC FINAL 2017
Subway ChasingProblem DescriptionMr. Panda and God Sheep are roommates and working in the same company. They always take subway to work together. There are N subway stations on their route, number...原创 2018-03-24 15:29:50 · 677 阅读 · 0 评论 -
HDU 1534 Schedule Problem
Schedule ProblemProblem DescriptionA project can be divided into several parts. Each part should be completed continuously. This means if a part should take 3 days, we should use a continuous 3 da...原创 2018-03-24 23:41:48 · 233 阅读 · 0 评论 -
查分约束系统
首先根据题目的要求进行不等式组的标准化。(1)、如果要求取最小值,那么求出最长路,那么将不等式全部化成xi – xj >= k的形式,这样建立j->i的边,权值为k的边,如果不等式组中有xi – xj > k,因为一般题目都是对整形变量的约束,化为xi – xj >= k+1即可,如果xi – xj = k呢,那么可以变为如下两个:xi – xj >= k, xi...原创 2018-08-28 09:20:35 · 310 阅读 · 0 评论