上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: #include #include int zhuanhuan(char str[20]){ if(strcmp(str,"zero")==0) return 0; if(strcmp(str,"one")==0) return 1; if(strcmp(str,"two")==0) ret... 阅读全文
posted @ 2014-08-16 16:00 夏子藤 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){int n,a,b[1010],i,j,cnt,sum;while(scanf("%d%d",&n,&a)!=EOF){cnt=0;for(i=0;i//#include int main(){ int m,n; int a[100]; int sum,k,i,... 阅读全文
posted @ 2014-08-16 10:18 夏子藤 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int m; scanf("%d",&m); while(m--) { int money,wujiao,erjiao,yijiao; int num; num=0; scanf("%d",&money); for(wujiao=0;wujiao<=mon... 阅读全文
posted @ 2014-08-16 09:43 夏子藤 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include using namespace std;const int MAXX = 10;int box[MAXX][MAXX];v... 阅读全文
posted @ 2014-08-15 11:38 夏子藤 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ char a[50]; int n; while(scanf("%s%d",a,&n)!=EOF) { //getchar(); int l,i,k; //scanf("%d",&n); l=strlen(a); k=n%l; for(i=... 阅读全文
posted @ 2014-08-15 11:35 夏子藤 阅读(157) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-08-13 21:12 夏子藤 阅读(19) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-08-12 19:25 夏子藤 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int n,l; char a[10]; scanf("%d",&n); getchar(); while(n--) { gets(a); l=strlen(a); if(l==5) printf("3\n"); else if(l==3)... 阅读全文
posted @ 2014-08-12 16:27 夏子藤 阅读(87) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int a[11]; while(scanf("%d%d%d%d%d%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],&a[7],&a[8],&a[9])!=EOF) { int i,num; num... 阅读全文
posted @ 2014-08-12 15:50 夏子藤 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int m,n; while(scanf("%d,%d",&m,&n)!=EOF) { int i; for(i=m;i>0;i--) if(m%i==0&&n%i==0) break; printf("%d\n",i); } return 0; } 阅读全文
posted @ 2014-08-12 09:43 夏子藤 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页