Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
38592 老方 加密的病历单 C++ Wrong Answer 0 MS 244 KB 297 2024-01-27 19:14:22

Tests(0/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=int(n[i]); n[i]=char((asc+3)%26); if(n[i]>='A'&&n[i]<='Z')n[i]+=' '; else n[i]-=' '; } for(int i=strlen(n)-1;i>=0;i--){ cout<<n[i]; } return 0; }