Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114035 | 成书骏 | 03字符加密 | C++ | Accepted | 1 MS | 276 KB | 283 | 2025-03-18 22:09:20 |
#include <iostream> #include <string> using namespace std; int main() { string s; getline(cin, s); const int n = 2; for (char &c : s) if (c >= 'A' && c <= 'Z') c = (c - 'A' + n) % 26 + 'A'; cout << s << endl; return 0; }