Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37096 | 张淳睿 | 密码翻译 | C++ | Compile Error | 0 MS | 0 KB | 324 | 2024-01-19 15:07:43 |
#include<cstring> #include<iostream> 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]>='Z'){ a[i]+=1 } } cout<<a; return 0; }