#include<bits/stdc++.h>
using namespace std;
char a[505],b[505],m[505];
bool d=0;
int c=504,e,f,g,h;
int main()
{
cin>>a>>b;
g=strlen(a);
h=strlen(b);
for(int z=0;z<g;z++)
{
a[504-z]=a[z];
}
for(int z=0;z<h;z++)
{
b[504-z]=b[z];
}
while(a[c] || b[c])
{
e=a[c]-'0';
f=b[c]-'0';
e+=f;
if(d)
{
e++;
}
if(e>=10)
{
e=e-10;
d=1;
}
d=0;
m[504-c]=e+'0';
c--;
}
for(int z=0;z<504;z++)
{
if(m[z]>='0' && m[z]<='9')
{
cout<<m[z];
}
}
return 0;
}
为什么没进位???