摘要: 代码: struct NODE{ int to; int nxt; int c; }node[MM];//链式向前星 int head[NM],lcnt=1; void add(int a,int b,int c){ node[lcnt].to=b; node[lcnt].c=c; node[lcn 阅读全文
posted @ 2018-11-06 15:57 dudujerry 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: 代码: #include<iostream> #include<vector> #include<cstdio> #include<queue> #include<map> #include<cstdlib> #include<cmath> #include<algorithm> #include< 阅读全文
posted @ 2018-11-06 15:29 dudujerry 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 代码: #include<iostream> #include<vector> #include<cstdio> #include<queue> #include<map> #include<cstdlib> #include<cmath> #include<algorithm> #include< 阅读全文
posted @ 2018-11-06 14:08 dudujerry 阅读(290) 评论(0) 推荐(0) 编辑