摘要: #include #include #includechar str[100000000];int ar[100000000];int main(){ int n,len,i; scanf("%d",&n); while(n--) { scanf("%s",st... 阅读全文
posted @ 2015-06-19 18:16 Gabyler 阅读(144) 评论(0) 推荐(0)
摘要: #include #include int main(){ char str[100]; while(gets(str) != NULL) { printf("%s\n",str); } return 0;}View Code 阅读全文
posted @ 2015-06-19 16:02 Gabyler 阅读(92) 评论(0) 推荐(0)
摘要: #include #include int main(){ int n,r,e,a; scanf("%d",&n); while(n--) { scanf("%d %d %d",&r,&e,&a); if((e-r) > a) ... 阅读全文
posted @ 2015-06-19 14:08 Gabyler 阅读(125) 评论(0) 推荐(0)
摘要: #include #include int tab[1000001];//以后都用宏定义 MAXint main()//如要将包括1000000在内的打表,数组就开大一个{ int a,d,n,i,j; tab[0]=0;tab[1]=0; for(i=2;i<1000001;i+... 阅读全文
posted @ 2015-06-19 13:20 Gabyler 阅读(181) 评论(2) 推荐(0)
摘要: #include #include int main(){ int n,tim=0; long long ans,a,b; scanf("%d",&n); while(n--) { scanf("%lld %lld",&a,&b); ans ... 阅读全文
posted @ 2015-06-19 11:58 Gabyler 阅读(137) 评论(0) 推荐(0)