模板
lybbor
写的有问题可以帮我指明吗!谢谢!
展开
-
Dijkstra模板
广播传送 #include<bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f typedef long long ll; using namespace std; //struct edge //{ // ll len; //}; int n,m,c,s,d; int t,z; int a[233],b...原创 2019-08-31 11:06:04 · 88 阅读 · 0 评论 -
spfa模板
#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll inf=0x3f3f3f3f3f; const ll N=20100; ll n,m,s,t; ll dis[N],vis[N],sum[N]; struct node { ll v; ///点 ll weight; ...原创 2019-08-31 11:11:27 · 108 阅读 · 0 评论