출처
- 2021 Sogang Programming Contest Master A번
- 2021 Sogang Programming Contest Open A번
문제
풀이
#include <iostream>
#include <map>
#include <string>
using namespace std;
map<char, string> mp = {
{'B', "v"},
{'E', "ye"},
{'H', "n"},
{'P', "r"},
{'C', "s"},
{'Y', "u"},
{'X', "h"}
};
void solve(void) {
string s; cin >> s;
for (char a : s) {
if (mp.find(a) != mp.end()) cout << mp[a];
else cout << (char)(a - 'A' + 'a');
}
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}