Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:找不见错在哪里!Wrong Answer!

Posted by 070824204 at 2009-01-16 20:41:38 on Problem 2316
In Reply To:找不见错在哪里!Wrong Answer! Posted by:X_CrDjN at 2006-08-05 16:35:29
> # 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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator