| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5194 | A班-许锘林 | 加密的病例单 | C++ | Wrong Answer | 0 | 1 MS | 260 KB | 708 | 2025-01-23 16:42:38 |
#include <bits/stdc++.h> using namespace std; int main() { char a[100]; char b[100]; cin>>a; for(int i = 0;i < strlen(a);i++) { if(a[i] >= 'A' && a[i] <= 'Z') { char e = a[i] + 32; if(e == 'x') { e = 'a'; } else if(e == 'y') { e = 'b'; } else if(e == 'z') { e = 'c'; } else { e = e + 3; } b[i] = e; } else { char e = a[i] - 32; if(e == 'X') { e = 'A'; } else if(e == 'Y') { e = 'B'; } else if(e == 'Z') { e = 'C'; } else { e = e + 3; } b[i] = e; } } for(int i = strlen(a);i >= 0;i--) { cout<<b[i]; } return 0; }