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

根本不需要自己写别的函数

Posted by kaluzny at 2010-01-31 23:51:57 on Problem 1504
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main()
{
	int a,b,r,n,i;
	char x[100],y[100],z[100];
	scanf("%d", &n);
	for(i=0;i<n;i++){
		scanf("%d %d",&a,&b);itoa(a,x,10);itoa(b,y,10);
		strrev(x);strrev(y);a=atoi(x);b=atoi(y);
		r=a+b;itoa(r,z,10);strrev(z);r=atoi(z);
		printf("%d\n",r);
	}
}

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