| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75347 | sh25_wangtaojie | 密码翻译 | C++ | 通过 | 0 MS | 248 KB | 615 | 2025-12-05 15:48:32 |
#include <iostream> #include <string> using namespace std; string encrypt(const string& input) { string result; for (char c : input) { if (c >= 'a' && c <= 'y') { result += c + 1; } else if (c == 'z') { result += 'a'; } else if (c >= 'A' && c <= 'Y') { result += c + 1; } else if (c == 'Z') { result += 'A'; } else { result += c; } } return result; } int main() { string input; getline(cin, input); cout << encrypt(input) << endl; return 0; }