# NC14581 客官这边请（A+B）

## 代码

### Python

T = int(input())
for i in range(1, T + 1):
a, b = map(int, input().split())
print('Case %d:' % i)
print(a, '+', b, '=', a + b)
if i != T:
print()


### C++

#include<iostream>
#include<sstream>
#include<string>
using namespace std;
const short N = 105;

//储存大型数据的LongInt类
class LongInt {
private:
short self[N];		//保存每一位的数字，共N=105位
public:
//构造函数，用字符串init初始化数组self
LongInt(const string& init) {
short index;
for (index = 0; index < N - init.length(); ++index)
self[index] = 0;
for (short i = 0; index < N; ++index, ++i)
self[index] = init[i] - '0';
}
//将数组self中的数据组成字符串
string get() const {
ostringstream os;
//辅助判断是否输出了第一个非零数字
bool done = false;
for (short i : self) {
//前零不输出判断
if (i != 0 || (i == 0 && done)) {
os << i;
if (i != 0) done = true;
}
}
return os.str();
}
//将一个LongInt对象加到这个对象上
for (short i = N-1; i >= 0; --i) {
self[i] += num.self[i];
if (self[i] > 9) {
self[i - 1]++;
self[i] %= 10;
}
}
}
};

int main() {
int T;
cin >> T;
for (int i = 1; i <= T; i++) {
string as, bs;
cin >> as >> bs;
cout << "Case " << i << ':' << endl;
cout << as << " + " << bs << " = ";
//用两个字符串as、bs初始化a、b
LongInt a(as), b(bs);
cout << a.get() << endl;
if (i != T)
cout << endl;
}
return 0;
}


07-04 1134

12-31 2151
08-23 249
02-20 28万+
02-14 31万+
06-04 1178
05-31 4091
10-01 1783