题目链接:
紫书P73
解题报告:
#include#include #include #include using namespace std;int main(){ //freopen("input.txt","r",stdin); char str1[110],str2[110]; int num1[30],num2[30]; while(scanf("%s%s",str1,str2)!=EOF) { int len = strlen(str1); memset(num1,0,sizeof(num1)); memset(num2,0,sizeof(num2)); for(int i=0;i