| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37129 | 王shizhao | 密码翻译 | C++ | Accepted | 1 MS | 260 KB | 472 | 2024-01-19 15:13:35 |
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { char a[256]; int len; int i; gets(a); len=strlen(a); for(i=0;i<len;i++) { if(a[i]=='Z'||a[i]=='z') a[i]-=25; else if(a[i]>='A'&&a[i]<'Z') a[i]+=1; else if(a[i]>='a'&&a[i]<'z') a[i]+=1; } for(int i=0;i<len;i++) cout<<a[i]; cout<<endl; return 0; }