摘要: #include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespace std; #define x first #define y second const int N=210; typede 阅读全文
posted @ 2020-01-29 16:59 晴屿 阅读(115) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #include<iostream> using namespace std; const int N=30; int map[N][N]; bool vis[N]; void Prim(int n) { int len=0, 阅读全文
posted @ 2020-01-29 16:11 晴屿 阅读(101) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=110; int p[N],n,m,ans,num; struct node { in 阅读全文
posted @ 2020-01-29 15:29 晴屿 阅读(100) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=510,M=10010; int 阅读全文
posted @ 2020-01-29 15:22 晴屿 阅读(99) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdio.h> #include<cstring> #include<queue> using namespace std; typedef pair<int,int>PII; //原地图 char g[100][100]; int n,m; 阅读全文
posted @ 2020-01-29 15:18 晴屿 阅读(120) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> #include<cstring> using namespace std; const int N=110; #define inf 1<<29 int map[N][N],n; int dist[N]; bool st[N] 阅读全文
posted @ 2020-01-29 14:58 晴屿 阅读(125) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> using namespace std; const int maxn=800; int n,m,tot,u,v; int pre[maxn]; //存点 阅读全文
posted @ 2020-01-29 14:45 晴屿 阅读(87) 评论(0) 推荐(0)
摘要: #include<cstring> #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> #define x first #define y second using namespace std; typede 阅读全文
posted @ 2020-01-29 14:12 晴屿 阅读(119) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<algorithm> #include<stdio.h> using namespace std; const int INF=0x3f3f3f3f; const int N=2010; int n; int 阅读全文
posted @ 2020-01-29 14:02 晴屿 阅读(120) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; const int N=1e6+10; struct edge{ int a,b; double w; }e[N]; int p[N]; int a[N]; int n; bool 阅读全文
posted @ 2020-01-29 13:46 晴屿 阅读(124) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=110; int p[N]; struct edge{ int a; int b; int w; }e[N*N]; in 阅读全文
posted @ 2020-01-29 13:14 晴屿 阅读(104) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include<algorithm> #include<cstdio> using namespace std; const int N=1e5; struct edge{ int a,b; double w; }e[N]; d 阅读全文
posted @ 2020-01-29 12:52 晴屿 阅读(173) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<queue> using namespace std; const int N=1e6; int h[N],e[N],ne[N],w[N]; int n,m; int idx; bool st[N]; int 阅读全文
posted @ 2020-01-29 11:26 晴屿 阅读(100) 评论(0) 推荐(0)
摘要: #include<math.h> #include<iomanip> //setprecision头文件 #include<stdio.h> #include<iostream> #include<algorithm> #include<string.h> #include<queue> using 阅读全文
posted @ 2020-01-29 11:25 晴屿 阅读(118) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> #include<queue> #include<map> #include<cstring> #include<cstring> #include<cstdio> #include<math.h> using names 阅读全文
posted @ 2020-01-29 11:24 晴屿 阅读(115) 评论(0) 推荐(0)
摘要: #include<iostream> #include<queue> #include<cstring> using namespace std; const int N=200000+10,INF=0x3f3f3f3f; int h[N],e[N],ne[N],w[N],idx; int n,m, 阅读全文
posted @ 2020-01-29 11:23 晴屿 阅读(119) 评论(0) 推荐(0)
摘要: #include<iostream> #include<queue> #include<cstdio> #include<cstring> using namespace std; double d[35]; int h[1010],cnt,n,pre[35]; bool vis[35]; stru 阅读全文
posted @ 2020-01-29 11:22 晴屿 阅读(160) 评论(0) 推荐(0)
摘要: #include<iostream> #include<queue> #include<cstring> using namespace std; const int N=1e6+10,INF=0x3f3f3f3f; int h[N],ne[N],e[N],w[N],idx; int dist[N] 阅读全文
posted @ 2020-01-29 11:20 晴屿 阅读(93) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; const int N=1e5; struct edge{ int a,b,w; }e[N]; bool cmp(edge a,edge b) { return a.w<b.w; 阅读全文
posted @ 2020-01-29 11:19 晴屿 阅读(124) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=0x3f3f3f3f; int p[50]; struct edge{ int a,b,w; }e[100]; bool 阅读全文
posted @ 2020-01-29 11:09 晴屿 阅读(110) 评论(0) 推荐(0)