上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页
摘要: #include<iostream> #include<algorithm> #include<cstdio> using namespace std; const int N=10010<<1; struct node { int l,r,ans; } q[N]; int a[N],fa[N],d 阅读全文
posted @ 2020-02-01 20:09 晴屿 阅读(111) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; const int N=1e5; struct edge{ int w; int deadline; }e[N]; bool cmp(edge a,edge b) { return 阅读全文
posted @ 2020-02-01 19:57 晴屿 阅读(95) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; const int N=200010; int d[N],p[N]; int find(int x) { if(p[x]!=x) { int root=find(p[x]); d[x] 阅读全文
posted @ 2020-02-01 17:25 晴屿 阅读(124) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; const int N=1010; int p[N]; int find(int x) { if(p[x]!=x) p[x]=find(p[x]); return p[x]; } int main() { int t; 阅读全文
posted @ 2020-02-01 15:28 晴屿 阅读(78) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; const int N=30010; int n,m,ans,p[N]; int find(int x) { if(p[x]!=x) p[x]=find(p[x]); return p[x]; } int main() 阅读全文
posted @ 2020-02-01 15:23 晴屿 阅读(90) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; const int N=100010; int p[N]; int d[N]; int find(int x) { if(p[x]!=x) { int u=find(p[x]); d[x 阅读全文
posted @ 2020-02-01 15:16 晴屿 阅读(108) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> using namespace std; const int N=1010; int dx[N],dy[N]; int p[N]; int repair[N]; int n; int d; double get(int a,int 阅读全文
posted @ 2020-02-01 14:40 晴屿 阅读(111) 评论(0) 推荐(0)
摘要: // #include<iostream> #include<cstring> #include<queue> #include<stack> #include<stdio.h> using namespace std; const int INF=0x3f3f3f3f; const int N=3 阅读全文
posted @ 2020-01-31 15:28 晴屿 阅读(165) 评论(0) 推荐(0)
摘要: #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)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页