提交时间:2024-01-26 10:14:39

运行 ID: 128802

#include<bits/stdc++.h> using namespace std; int main() { char c; while((c=getchar())!='\n'){ if((c>='a'&&c<'w')||(c>='A'&&c<'W')){ c+=4; cout<<c;} else if((c>='w'&&c<='z')||(c>='W'&&c<='Z')){ c-=22; cout<<c; } else{ c+=0; cout<<c; } } return 0; }