| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152597 | 杨启宏 | 加密的病历单 | C++ | Wrong Answer | 1 MS | 272 KB | 779 | 2026-04-28 19:03:50 |
#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]; int b; cin>>a; b=strlen(a); for(int i=0;a[i]!='\0';i++){ if('A'<=a[i]&&a[i]<='Z'){ if(a[i]+3>'Z'){ a[i]=a[i]-26+3; }else{ a[i]+=3; } a[i]+=32; }else{ if(a[i]+3>'z'){ a[i]=a[i]-26+3; }else{ a[i]+=3; } a[i]-=32; } } for(int i=b;i>=0;i--){ cout<<a[i]; } return 0; }
------Input------
QkuGixGiCRBSbSfYmYxtQsPuHaYSYYKSVYuywxqiHIBqOQOnp
------Answer-----
SQrtrTelkLTAZBXbyvnbbvbDkXsVtWAbPbIvEveufLjALjXNt
------Your output-----