include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
const int N=1e6+10;//给予最大的值
vector[HTML_REMOVED]add(vector[HTML_REMOVED]&A,vector[HTML_REMOVED]&B){
vector[HTML_REMOVED]c;//用来存储正确结果
int t=0;//用来存放进制和位数相加的值
for(int i=0;i[HTML_REMOVED]>a>>b;
vector[HTML_REMOVED]A,B;
for(int i=a.size()-1;i>=0;i–)A.push_back(a[i]-‘0’);//将一个数字倒叙存入到vector里面“4321”
for(int i=b.size()-1;i>=0;i–)B.push_back(b[i]-‘0’);//将一个数字倒叙存入到vector里面“4321”
auto C=add(A,B);
for(int i=C.size()-1;i>=0;i--){
printf("%d",C[i]);
}
return 0;
}