首页 > 01串
头像 王意飞2110181023WSxin
发表于 2023-05-01 17:29:29
差分约束 模板题 找到不等式 建立边 跑spfa(有负权边)如果有负环 则不存在 #include <bits/stdc++.h> using namespace std; const int N=1e4+10; int h[N],ne[2*N],e[2*N],w[2*N],idx,co 展开全文