题解 | #简单密码#
简单密码
http://www.nowcoder.com/practice/7960b5038a2142a18e27e4c733855dac
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
string a = {"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"}; //非必要的参照字典
string b = {"bcdefghijklmnopqrstuvwxyza222333444555666777788899990123456789"};
cin>>s;
for(int i=0;i<s.length();i++)
{
cout<<b[a.find(s[i])];
}
}
using namespace std;
int main()
{
string s;
string a = {"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"}; //非必要的参照字典
string b = {"bcdefghijklmnopqrstuvwxyza222333444555666777788899990123456789"};
cin>>s;
for(int i=0;i<s.length();i++)
{
cout<<b[a.find(s[i])];
}
}