Run ID:99351
提交时间:2024-11-26 15:09:01
#include<bits/stdc++.h> using namespace std; char s[10001]; int main(){ int i,n,t; gets(s); n=strlen(s); for(i=0;i<n;i++){ if(s[i]>='a'&&s[i]<='z'){ t=s[i]; t+=3; if(t>122) t-=26; t-=32; s[i]=t; } else if(s[i]>='A'&&s[i]<='Z'){ t=s[i]; t+=3; if(t>90) t-=26; t+=32; s[i]=t; } } for(i=n-1;i>=0;i--){ cout<<s[i]; } return 0; }