poj1504

    技术2024-11-14  23

    #include <stdio.h>#include <stdlib.h>

    int r(int num){    int sum = 0;    while(num >= 1)    {    sum = sum*10+num%10;    num /= 10;}return sum;}

       

    int main(int argc, char *argv[]){ int n,n1,n2,i; scanf("%d",&n); for(i=0;i<n;i++) {            scanf("%d %d",&n1,&n2);            printf("%d/n",r( r(n1)+r(n2)) );

    }  return 0;}

    最新回复(0)