竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长 摘要:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;ll tong[N];int …… 文章列表 2024年07月15日 0 点赞 0 评论 336 浏览 评分:0.0
匈牙利算法(找对象) 摘要://形象:男的女的互有好感,现在为男的(a)找女朋友(b)且保证没有脚踏多只船 #include<iostream> #include<algorithm> #include<cstring> …… 文章列表 2024年07月12日 0 点赞 0 评论 169 浏览 评分:0.0
染色法判二分图 摘要://二分图:图中不含奇数环 一条边两个点的颜色需不同 #include<iostream> #include<cstring> #include<algorithm> using na…… 文章列表 2024年07月11日 0 点赞 0 评论 178 浏览 评分:0.0
kruskal找(判断)最短路 摘要:#include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=1e5+…… 文章列表 2024年07月11日 0 点赞 0 评论 163 浏览 评分:0.0
prim求最短路(稀疏) 摘要://prim求最短路(神似dijkstra) #include<iostream> #include<algorithm> #include<cstring> using namespa…… 文章列表 2024年07月11日 0 点赞 0 评论 183 浏览 评分:0.0
floyd求最短路 摘要://floyd求最短路 #include<iostream> #include<cstring> #include<algorithm> using namespace std; co…… 文章列表 2024年07月10日 0 点赞 0 评论 154 浏览 评分:9.9
spfa判断图中是否存在负权 摘要://利用spfa判断该图存不存在负环 #include<iostream> #include<cstring> #include<algorithm> #include<queue> …… 文章列表 2024年07月10日 0 点赞 0 评论 132 浏览 评分:0.0
spfa:正权负权边通用最短路 摘要:#include<iostream> #include<cstring> #include<algorithm> #include<queue> using namespace std; …… 文章列表 2024年07月10日 1 点赞 0 评论 130 浏览 评分:10.0
堆优化版最短路(dijkstra) 摘要:#include<iostream> #include<cstring> #include<algorithm> #include<vector> #include<queue> us…… 文章列表 2024年07月09日 0 点赞 0 评论 132 浏览 评分:0.0
最短路(dijkstra) 摘要:#include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=1e1…… 文章列表 2024年07月09日 0 点赞 0 评论 161 浏览 评分:9.9