题解分享
题解分享简介
解密(结果填空) - 题解
注意是还原密码,即$Tc \to c$
```cpp
#include <bits/stdc++.h>
using namespace std;
#define int long long
// #define LL long long
#define endl '\n'
void solve()
{
string s = "EaFnjISplhFviDhwFbEjRjfIBBkRyY";
freopen("str.txt", "r", stdin);
char c, Tc;
char replace[130];
for (int i = 1; i <= 52; i++)
{
cin >> c >> Tc;
replace[Tc] = c;
}
for (int i = 0; i < s.length(); i++)
{
s[i] = replace[s[i]];
}
cout << s << endl;
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
solve();
return 0;
}
```
查看全文
0
0
0
4



