http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4116
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<queue>
#include<algorithm>
#include<map>
#include<iomanip>
#define INF 99999999
using namespace std;
const int MAX=10;
char s1[MAX],s2[MAX];
int main(){
int n;
while(cin>>n){
memset(s2,0,sizeof s2);
getchar();
for(int i=0;i<2*n-1;++i){
gets(s1);
for(int j=0;j<7;++j)s2[j]^=s1[j];
}
puts(s2);
}
return 0;
}