#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
int n;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>s;
for(int j=0;j<s.size();j++)
{
if(s[j]>='A'&&s[j]<='Z')
{
s[j]+=5;
if(s[j]>'Z')
{
s[j]-=26;
}
}
}
cout<<s<<endl;
}
return 0;
}
被注释掉的getline在代码中没有效果
换成cin又无法处理空格
求大佬解释为何getline无用
PS:第一次求助,不是洛谷题,敬请谅解