摘要: SPFA看入队次数,入队次数>n则说明一定有负环 #include<bits/stdc++.h> using namespace std; const int maxn=2005; const int maxm=20005; const long long inf=2147483647; int n 阅读全文
posted @ 2025-09-10 15:48 曾翎一 阅读(8) 评论(0) 推荐(0)