上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 99 下一页

2011年4月29日

手机短号

摘要: #include<stdio.h>#include<string.h>int main( ){ char ch[15],*p,*q; int N,len; scanf("%d",&N); while(N--) { scanf("%s",ch); len=strlen(ch); p=ch; q=ch+len; printf("6"); for(p=ch+6;p<q;p++) printf("%c",*p); puts(""); } return 0;} 阅读全文

posted @ 2011-04-29 22:16 more think, more gains 阅读(137) 评论(0) 推荐(0) 编辑

算菜价

摘要: #include<stdio.h>int main( ){ char ch[100];double a,b,sum=0;while(scanf("%s%lf%lf",ch,a,b)!=EOF) sum+=a*b;printf("%.2lf\n",sum);return 0;}在编译器上是无法得结果的。直接提交。 阅读全文

posted @ 2011-04-29 22:10 more think, more gains 阅读(187) 评论(0) 推荐(0) 编辑

A==B

摘要: #include<stdio.h>#include<string.h>int main( ){ char a[100020],b[100020],c[100020],d[100020]; while(scanf("%s%s",a,b)!=EOF) { int i,j,k=0,m=0,n=0,len1,len2,f1=0,f2=0,f3=0,f4=0; len1=strlen(a); len2=st... 阅读全文

posted @ 2011-04-29 22:04 more think, more gains 阅读(155) 评论(0) 推荐(0) 编辑

Bitset

摘要: #include<stdio.h>int main(){ int A[120],N,i,j,k,t; while(scanf("%d",&t)!=EOF) { i=0; while(t) { A[i++]=t%2; t=t/2; } j=i; for(i=j-1;i>=0;i--) printf("%d",A[i]); puts("");}return 0;} 阅读全文

posted @ 2011-04-29 20:25 more think, more gains 阅读(155) 评论(0) 推荐(0) 编辑

密码

摘要: #include<stdio.h>#include<string.h>int main( ){ int N; scanf("%d",&N); while(N--) { int i,j,k,len,f1=0,f2=0,f3=0,f4=0,f5=0; char ch[60]; scanf("%s",ch); len=strlen(ch); if(len>=8&&len<=16) f1=1; for(i... 阅读全文

posted @ 2011-04-29 20:16 more think, more gains 阅读(145) 评论(0) 推荐(0) 编辑

上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 99 下一页

导航