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:不明白为什么runtime error啊。。请各位高手帮帮忙~~

Posted by 2810201023 at 2009-05-28 12:17:29 on Problem 1504
In Reply To:不明白为什么runtime error啊。。请各位高手帮帮忙~~ Posted by:huangziss at 2009-03-19 17:02:38
> int d(int a);
> int a[50],b[50];
> main(){
> 	int n,i;
> 	scanf("%d",&n);
> 	for(i=0;i<n;i++)scanf("%d %d",&a[i],&b[i]);
> 	i=0;
> 	while(i++<n)printf("%d\n",d(d(a[i-1])+d(b[i-1])));
> }
> int d(int a){
> 	int t=0,i;
> 	while(a>0){
> 		i=a%10;
> 		t=t*10+i;
> 		a/=10;
> 	}
> 	return t;
> }

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