
图论复习
末红
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
kruskal!!!!复习
kruskal #include<bits/stdc++.h> using namespace std; inline int rd(){ int s=0,w=1; char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();} while(ch>='0'&am...原创 2019-07-10 16:09:39 · 625 阅读 · 0 评论 -
dijkstra!!!!复习
dijstra复习***** 使用结构体优先队列 #include<bits/stdc++.h> using namespace std; const int N=100001,M=200000*2; struct st{ int nxt,to,w; }edge[M]; int head[N],num; void ad(int x,int y,int w) { edge[++nu...原创 2019-07-10 16:13:07 · 136 阅读 · 0 评论