加载中...

缩点后 spfa求最长路(不知道为什么top+dp做不了)

#include<queue> #include<cstdio> #include<cstring> #define N 500005 using namespace std; struct edge{ int to,val,next; } e[N]; int m,n,p,s,cnt,g[N],u[
posted @ 2022-09-01 23:41  liang302  阅读(17)  评论(0编辑  收藏  举报