#include #include #include using namespace std; string xor_str(string, string); int main(){ string input, line; while (getline(cin, input)) { line = xor_str(line, input); cout << line << endl; } return 0; } string xor_str(string a, string b) { string c = (a.size() > b.size() ? a : b); for (int i = 0; i < (a.size() < b.size() ? a.size() : b.size()); i++) { c[i] = (char)((int)a.at(i) ^ (int)b.at(i)); } return c; }