uvalive4255专题

UValive4255 Guess

传送门 //放一个vjudge的罢 差分约束系统。 需要开一点点脑洞,转化为前缀和之间的大小关系然后建图跑拓扑排序。 CODE:(又长又丑又慢的代码) #include<queue>#include<cstdio>#include<cstring>using namespace std;#define N 15struct edge{int nxt,to,dis;}a[10