题解 | #简单密码#
简单密码
https://www.nowcoder.com/practice/7960b5038a2142a18e27e4c733855dac
#include <iostream> #include <cctype> #include <string> using namespace std; int main() { string str, str1, str2; getline(cin,str); string str3; str1 ={"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"}; str2 ={"bcdefghijklmnopqrstuvwxyza222333444555666777788899990123456789"}; for(int i=0;i <str.length();i++){ cout << str2[str1.find(str[i])]; } }