#include<bits/stdc++.h>
using namespace std;
string Add(string a, string b){
if(a.length() < b.length()) swap(a, b);
string res(a.length(), '0'); // 设置结果长度
b.insert(0, a.length()-b.length(), '0'); // 较短位数的数字前补0,方便后续计算
int carry = 0; // 进位
for(int i = a.length()-1; i &g...