题解 | #简单密码#

简单密码

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])];
    }
}

全部评论

相关推荐

07-07 12:47
门头沟学院 Java
码农索隆:竟然还真有卡体检报告的
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务