| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 89578 | sh25_shengmy | 加密的病历单 | C++ | Accepted | 0 MS | 252 KB | 741 | 2026-06-05 14:37:13 |
#include<iostream> #include<string> using namespace std; int main() { string c; getline(cin,c); int n=c.size(); string b=c; for(int i=0;i<n;i++) { c[i]=b[n-1-i]; } for(int i=0;i<c.size();i++) { if(c[i]>='A'&&c[i]<='Z') { c[i]+=32; } else { c[i]-=32; } } for(int i=0;i<c.size();i++) { if(c[i]>='a'&&c[i]<='w') { c[i]+=3; } else if(c[i]=='z') { c[i]='c'; } else if(c[i]=='y') { c[i]='b'; } else if(c[i]=='x') { c[i]='a'; } else if(c[i]>='A'&&c[i]<='W') { c[i]+=3; } else if(c[i]=='Z') { c[i]='C'; } else if(c[i]=='Y') { c[i]='B'; } else if(c[i]=='X') { c[i]='A'; } } cout<<c; }