EZ
2025-07-18 18:00:16
发布于:上海
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
getline(cin,s);
char arr[114514]={'Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y'};
int x=1;
for(int i=0;i<s.size();i++){
if(s[i]==' '){
cout<<arr[x%26];
x++;
}else cout<<s[i];
}
return 0;
}
这里空空如也
有帮助,赞一个