1505:A+B’
Description
A+B'
Input
题目有多组输入
每行有一组 数据为两个整数 A B(0<=A,B<=1e6)
Output
A+B'的和
Sample Input
4 3
27 12
100 200
Sample Output
7
48
102
HINT
B'就是B反过来啦。
Source
#include<iostream>
using namespace std;
int main()
{
int A,B;
while(cin>>A>>B)
{
int count=0;
while(B!=0)
{
count=count*10+B%10;
B=B/10;
}
cout<<A+count<<endl;
}
}