| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128573 | 陈奕涵 | 加密的病历单 | C++ | Wrong Answer | 1 MS | 272 KB | 636 | 2025-08-18 14:13:05 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[51]; cin>>a; int m=strlen(a); for(int i=0;i<m;i++){ a[i]+=3; if(a[i]>='A'&&a[i]<='Z'){ a[i]+=32; if(a[i]>'z') a[i]-=26; }else{ a[i]-=32; if(a[i]>'Z') a[i]-=26; } } for(int i=m-1;i>=0;i--) cout<<a[i]; return 0; }
------Input------
QkuGixGiCRBSbSfYmYxtQsPuHaYSYYKSVYuywxqiHIBqOQOnp
------Answer-----
SQrtrTelkLTAZBXbyvnbbvbDkXsVtWAbPbIvEveufLjALjXNt
------Your output-----
SQrtrTelkLTAZBX