Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37103 | 王shizhao | 密码翻译 | C++ | Compile Error | 0 MS | 0 KB | 442 | 2024-01-19 15:09:37 |
#include <iostream> #include <string> using namespace std; int main() { char a[85]; gets(a); int ien=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; } } } for(int i=0;i<len;i++){ puts<<a; }