| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128072 | 袁龙浩 | 加密的病历单 | C++ | Wrong Answer | 1 MS | 276 KB | 674 | 2025-07-31 20:18:47 |
#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[50]; int s=0; cin>>a; s=strlen(a); for(int i=0;i<s;i++){ if(a[i]<='z'&&a[i]>='a'){ a[i]-=32; a[i]+=3; if(a[i]>'Z') a[i]-=32; } else{ a[i]+=32; a[i]+=3; if(a[i]>'z') a[i]-=32; } } for(int i=s-1;i>=0;i--){ cout<<a[i]; } return 0; }
------Input------
QkuGixGiCRBSbSfYmYxtQsPuHaYSYYKSVYuywxqiHIBqOQOnp
------Answer-----
SQrtrTelkLTAZBXbyvnbbvbDkXsVtWAbPbIvEveufLjALjXNt
------Your output-----
SQrtrTelkLT;Z