#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream>
using namespace std;
int main(){
freopen("3116.in","r",stdin);
freopen("3116.out","w",stdout);
int x,y,c[510],i,j,k=0,jw=0;
char a[510],b[510];
memset(a,0,sizeof(a)); memset(b,0,sizeof(b)); memset(c,0,sizeof(c));
scanf("%s",a); scanf("%s",b);
i=strlen(a)-1; j=strlen(b)-1;
while(j>=0||i>=0){
if(i>=0){jw=(a[i]-'0')+jw;i--;/*printf("jw1=%d i=%d \n ",jw,i);*/}
if(j>=0){jw=(b[j]-'0')+jw;j--;}
//printf("jw1=%d\n",jw);
c[k++]=jw%10;
//printf("c[k]=%d\n",c[k]);
jw=jw/10;
//printf("jw2=%d\n",jw);
}
k--;
/*printf("i=%d j=%d\n",i,j);
for(x=0;x<=i;x++) printf("%d",a[x]-'0');
printf("\n");
for(y=0;y<=j;y++) printf("%d",b[y]-'0');*/
//while(k>=0) cout<<c[k--];
for(i=k;i>=0;i--) printf("%d",c[i]);
return 0;
}
第四天
盲点:调试