| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37112 | 张淳睿 | 密码翻译 | C++ | Wrong Answer | 0 MS | 252 KB | 329 | 2024-01-19 15:11:02 |
#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]<='A'&&a[i]>='z'){ a[i]+=1; } } puts(a); return 0; }