题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1002
题目大意:求两个大数的和。
解题思路:高精度加法模板。
模板连接:http://blog.youkuaiyun.com/keshuai19940722/article/details/10087993
int main() {
int n, cas = 1;
char str1[N], str2[N];
cin >> n;
while (n--) {
cin >> str1 >> str2;
bign sum, num1, num2;
num1 = str1;
num2 = str2;
sum = num1 + num2;
cout << "Case " << cas++ << ":" << endl;
num1.put();
cout << " + ";
num2.put();
cout << " = ";
sum.put();
cout << endl;
if (n)
cout << endl;
}
return 0;
}