#include<stdio.h>#include<string.h> int main(){ int a[1010],b[1010],c[1010]; int n,k=1; scanf("%d",&n); while(n--) { memset(a,0,sizeof(a)); memset(b,0,sizeof(b)); memset(c,0,sizeof(c)); char str1[1005],str2[1005]; scanf("%s%s",str1,str2); //把两个数当作字符串输入 int ...