2016年2月29日
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #define M 1000001 4 using namespace std; 5 int head[M],next[M],u[M],n,v[M],fa[M],cnt,q[M],f1[M],xia[M],ans; 阅读全文
posted @ 2016-02-29 23:01 xiyuedong 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #define N 200005 5 using namespace std; 6 int a[N],v[N],sa[2][N],rk[2][N],n,k; 7 char ch 阅读全文
posted @ 2016-02-29 22:53 xiyuedong 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 using namespace std; 5 char ch[105],s[106]; 6 int n,m,a[6007][27],size=1,fail[6007],dui[ 阅读全文
posted @ 2016-02-29 22:49 xiyuedong 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 int T,a[100],n; 5 int main() 6 { 7 scanf("%d",&T); 8 for(;T;T--) 9 { 10 int a1=0,kg=0 阅读全文
posted @ 2016-02-29 11:47 xiyuedong 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #define M 2000000 4 int cnt,fa[M],n,m,ans[M],k,f[M],a[M],head[M],next[2*M],u[2*M]; 5 int zhao(int a1) 6 { 7 阅读全文
posted @ 2016-02-29 11:25 xiyuedong 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #define eps 1e-6 5 #define M 15 6 using namespace std; 7 double a[M],b[M][M]; 8 int n; 9 i 阅读全文
posted @ 2016-02-29 11:19 xiyuedong 阅读(149) 评论(0) 推荐(0) 编辑
  2016年2月28日
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #define M 200008 5 using namespace std; 6 int a[M],n,b[M],d,t,h,len; 7 char ch[10]; 8 阅读全文
posted @ 2016-02-28 06:37 xiyuedong 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #define M 50005 4 using namespace std; 5 long long sum[M],f[M],n,L,q[M],h,t,C; 6 double gg(int x,int y) 7 { 阅读全文
posted @ 2016-02-28 06:31 xiyuedong 阅读(150) 评论(0) 推荐(0) 编辑
  2016年2月27日
摘要: 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 long long n,m,ans=1,ans1=1,n1; 5 int main() 6 { 7 scanf("%lld%lld",&m,&n); 8 n--; 9 l 阅读全文
posted @ 2016-02-27 22:37 xiyuedong 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #define M 1000000 5 using namespace std; 6 struct data 7 { 8 int k,b,nu; 9 }a[M]; 10 i 阅读全文
posted @ 2016-02-27 22:35 xiyuedong 阅读(159) 评论(0) 推荐(0) 编辑