Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74683 头像本人 加密的病历单 C++ Wrong Answer 0 MS 276 KB 424 2024-05-25 17:23:21

Tests(1/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1001],b[1001]; int i,d; cin>>a; int c=strlen(a); for(i=0;i<c;i++){ if(a[i]>'A'&&a[i]<'W'){ b[i]=a[i]+32+3; } if(a[i]>='a'&&a[i]<='w'){ b[i]=a[i]-32+3; } if(a[i]>='X'&&a[i]<='Z'){ b[i]=a[i]+32-23; } if(a[i]>='x'&&a[i]<='z'){ b[i]=a[i]-32-23; } } for(i=c-1;i>=0;i--) { cout<<b[i]; } return 0; }


Run Info:

------Input------
tjfyNqyHpXjxWmHKOkCPFxbIEukFumgVLzPVVBocCTWVIngVU
------Answer-----
xyJQlyzwfFReyysCoyJPXiNXhlEAisfNrnkPzAMaSkBTqBIMW
------Your output-----
xyJQly