Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
39071 老方 加密的病历单 C++ Accepted 0 MS 248 KB 340 2024-01-30 15:48:13

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ char n[10001]; cin>>n; for(int i=0;i<strlen(n);i++){ int asc; if(n[i]>='a'&&n[i]<='z'){ asc=n[i]-'a'; n[i]='A'+((asc+3)%26); } else{ asc=n[i]-'A'; n[i]='a'+((asc+3)%26); } } for(int i=strlen(n)-1;i>=0;i--){ cout<<n[i]; } return 0; }


Judgement Protocol: