Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100668 | 杨登博 | 加密的病历单 | C++ | Wrong Answer | 1 MS | 276 KB | 597 | 2024-12-09 21:01:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; int main(){ char a[50]; cin>>a; int b; b=strlen(a); for(int i=0;a[i]!='\0';i++){ if(a[i]>='A'&&a[i]<='Z'){ a[i]+=3; if(a[i]>'Z') a[i]-=26; a[i]+=32; } else a[i]+=3; if(a[i]>'z') a[i]-=26; a[i]-=32; } for(int i=b-1;i>=0;i--){ cout<<a[i]; } return 0; }
------Input------
QkuGixGiCRBSbSfYmYxtQsPuHaYSYYKSVYuywxqiHIBqOQOnp
------Answer-----
SQrtrTelkLTAZBXbyvnbbvbDkXsVtWAbPbIvEveufLjALjXNt
------Your output-----
SQRTRTELKLTAZBXBYVNBBVBDKXSVTWABPBIVEVEUFLJALJXNT