https://www.acmicpc.net/problem/9243
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
string b1, b2;
cin >> b1 >> b2;
bool success = true;
for (int i = 0; i < b1.length(); i++) {
if (n % 2 == 0) {
if (b1[i] != b2[i]) {
success = false;
break;
}
}
else {
if (b1[i] == b2[i]) {
success = false;
break;
}
}
}
if (success) cout << "Deletion succeeded" << endl;
else cout << "Deletion failed" << endl;
return 0;
}