#include<iostream>
#include<vector>
using namespace std;
vector<int> add(vector<int> &a_1,vector<int> &b_1)
{
vector<int> c;
int t=0;
for(int i=0;i<a_1.size()||i<b_1.size();i++)
{
if(i<a_1.size()) t+=a_1[i];
if(i<b_1.size()) t+=b_1[i];
c.push_back(t%10);
t/=10;
}
if(t)
c.push_back(t);
return c;
}
int main(void)
{
string a,b;
vector<int> A,B,C;
cin>>a>>b;
for(int i=a.length()-1;i>=0;i--) A.push_back(a[i]-'0');
for(int i=b.length()-1;i>=0;i--) B.push_back(b[i]-'0');
C=add(A,B);
for(int i=C.size()-1;i>=0;i--)
cout<<C[i];
}
05-01
10-08
419
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-09
325
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-19