| ||||||||||
| 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 | |||||||||
根本不需要自己写别的函数#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator