摘要: 水~题意:求一个数的各个位置上的和,这个和是只有一位的View Code 1 #include<stdio.h> 2 #include<string.h> 3 const int maxn = 1005; 4 char a[ maxn ]; 5 int main(){ 6 while( scanf("%s",a)!=EOF ){ 7 if( strcmp(a,"0")==0 ) break; 8 int len; 9 len=strlen( a );10 int ans=0;11 for( int i=0... 阅读全文
posted @ 2013-01-20 21:20 xxx0624 阅读(207) 评论(0) 推荐(0) 编辑