| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
找不见错在哪里!Wrong Answer!# include <stdio.h>
# include <string.h>
main()
{ int i=0,e,m,t[10];
for(i=0;i<10;i++){t[i]=0;}
i=0;
for(;;)
{ m=getchar();if(m==EOF) break;
if (m=='\n') {e=i;i=0;continue;}
t[i]=t[i]+(m-'0');
if (t[i]>9) t[i]=t[i]%10;
i++;
}
for(i=0;i<e;i++){printf("%d",t[i]);}
return(0);
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator