原题链接:https://www.acwing.com/file_system/file/content/whole/index/content/6795673/

#include <iostream>

using namespace std;

int main()
{
    string s;
    getline(cin, s);
    cout << "初始密码:" << s << endl;
    for (auto &c : s)
    {
        if (c >= 'a' && c <= 'z')
        {
            c = (c - 'a' + 1) % 26 + 'a';
        }
        else if (c >= 'A' && c <= 'Z')
        {
            c = (c - 'A' + 1) % 26 + 'A';
        }
        else if (c >= '0' && c <= '9')
        {
            c = (c - '0' + 1) % 10 + '0';
        }
    }
    cout << "加密密码:" << s << endl;
    return 0;
}