摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int M=100055,inf=0x3f3f3f3f; int read(){ int ans=0,f=1,c=getchar(); 阅读全文
posted @ 2017-05-31 07:40 友人Aqwq 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> #include<queue> using namespace std; const int M=1000555,inf=1000000000; int read(){ int ans=0, 阅读全文
posted @ 2017-05-30 19:47 友人Aqwq 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int read(){ int ans=0,f=1,c=getchar(); while(c<'0'||c>'9'){if(c=='-') f=-1 阅读全文
posted @ 2017-05-28 20:26 友人Aqwq 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int n,m,ans,id[505],vis[105000]; char s[255],T[10005]; struct node{ int a[ 阅读全文
posted @ 2017-05-27 21:19 友人Aqwq 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int M=300055; int read(){ int ans=0,f=1,c=getchar(); while(c<'0'||c> 阅读全文
posted @ 2017-05-27 16:57 友人Aqwq 阅读(215) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int M=100005; int n,m,root; int c[M][2],fa[M],size[M]; bool rev[M]; 阅读全文
posted @ 2017-05-26 19:28 友人Aqwq 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int n,m,ans,id[505],vis[105000]; char s[255],T[10005]; struct node{ int a[ 阅读全文
posted @ 2017-05-25 13:53 友人Aqwq 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int size=26,M=1000005; char c[M]; int w[255],n; struct node{ int sum 阅读全文
posted @ 2017-05-23 18:12 友人Aqwq 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int M=1000055; char stack[M],s[M],t[M],f[M],next[M]; int len,top; vo 阅读全文
posted @ 2017-05-23 14:38 友人Aqwq 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 const int maxn=1000005,inf=0x3f3f3f3f; 6 int n,m,sum=1,S,T; 7 lo 阅读全文
posted @ 2017-05-04 20:29 友人Aqwq 阅读(113) 评论(0) 推荐(0) 编辑