A+B'

Description

A+B’

Input

0 < =A,B < =1e6

Output

输出答案

Sample Input

4 3
27 12
100 200

Sample Output

7
48
102

Hint

B’就是B反过来啦

Source


#include 
#include 

int main()
{
   int a;
   int b,c,t;
   double s;
   while ( 2 == scanf("%d%d",&a,&b))
   {
       c = 0;
       s = 0;
       t = b;
       while (b)
       {
           b /= 10;
           c++;
       }
       while (c--)
       {
           s += t%10*pow(10.0,c);
           t /= 10;

       }
       printf("%.lf\n",s+a);
   }
    return 0;
}
坚持原创技术分享,您的支持将鼓励我继续创作!
  • 本文作者: Fayne
  • 本文链接: 401.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!