Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115168 | 吴梓玄 | 情报加密 | C++ | Accepted | 1 MS | 268 KB | 310 | 2025-03-29 16:14:32 |
#include <bits/stdc++.h> using namespace std; int main() { char s[85]; gets(s); int m=strlen(s); for(int i=0;i<m;i++){ if (s[i]>='A' && s[i]<='Y' || s[i]>='a' && s[i]<='y'){ s[i]=s[i]+1; } else if (s[i]=='Z' || s[i]=='z'){ s[i]=s[i]-25; } cout<<s[i]; } return 0; }