Strange country.
There is a strange country in which the national attitude towards things is always only two sides. When two people meet to talk about a thing--two people who agree with it will continue to agree on it, and when a person with a sympathetic opinion encounters a person with an unfavorable opinion, the two will cease to agree, and the two who disagree with it will begin to agree on it.
The input consists of two lines, each of which includes n digits (1≤n≤50), which indicates that two people disagree with N and 1 agree with each other's views--0.
The output consists of one row, including n digits, which indicates the final view of the N-things after the two meet.
Sample input
1110010100101011
Sample output
00110001
1#include <iostream>2#include <cstring>3 #defineMAX 514 5 using namespacestd;6 intMain ()7 {8 CharA[max], B[max], C[max];9 gets (a);Ten gets (b); One A intLen =strlen (a); - - for(inti =0; i < Len; i++) the { - if(a[i]==B[i]) -C[i] =1; - Else +C[i] =0; - } + A at for(inti =0; i < Len; i++) - { -printf"%d", C[i]); - } -}
The strange country of the garlic guest