90pts,#3WA,代码:
#include <bits/stdc++.h>
using namespace std;
string a, b, s;
int y[27], x[27];
int main () {
cin >> a >> b >> s;
for (int i = 0; i < b.size (); i ++) y[b[i] - 'A'+ 1] ++;
for (int i = 1; i <= 26; i ++) {
if (y[i] == 0) {
cout << "Failed";
return 0;
}
}
for (int i = 0; i < s.size (); i ++) {
for (int j = 0; j < a.size (); j ++) {
if (s[i] == a[j]) {
cout << b[j];
break;
}
}
}
}
希望大佬指导一下