摘要: #include<cstdio> #include<string> #include<iostream> using namespace std; int p[101]; int main() { string a,b; cin>>a>>b; int n=a.length(),m=b.length( 阅读全文
posted @ 2017-10-31 18:47 探险家Mr.H 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #include<queue> #include< 阅读全文
posted @ 2017-10-31 16:37 探险家Mr.H 阅读(151) 评论(0) 推荐(0) 编辑
摘要: sort一下就是cows。。。 #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #include< 阅读全文
posted @ 2017-10-31 16:36 探险家Mr.H 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 给定n个集合 输出每个集合是多少集合的子集 #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #in 阅读全文
posted @ 2017-10-31 16:35 探险家Mr.H 阅读(239) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct node { int w, lc, rc, h; }t[M]; int merge(int A, int B) { if(!A) return B; if(!B) return A; if(t[A].w < t[B].w) swap(A, B); t[A... 阅读全文
posted @ 2017-10-31 16:33 探险家Mr.H 阅读(136) 评论(0) 推荐(0) 编辑
摘要: “Tarjan有三种算法 你们知道吗”——Tar乙己 void tarjan(int x) { low[x]=dfn[x]=++ind; q[++top]=x;mark[x]=1; for(int i=last[x];i;i=e[i].next) if(!dfn[e[i].to]) { tarjan 阅读全文
posted @ 2017-10-31 15:09 探险家Mr.H 阅读(348) 评论(0) 推荐(0) 编辑