| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37145 | 张淳睿 | 密码翻译 | C++ | Accepted | 0 MS | 248 KB | 329 | 2024-01-19 15:20:18 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[85]; gets(a); int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]=='z'||a[i]=='Z'){ a[i]-=25; } else if(a[i]<='z'&&a[i]>='a'){ a[i]+=1; } else if(a[i]<='Z'&&a[i]>='A'){ a[i]+=1; } } puts(a); return 0; }