#include<bits/stdc++.h>
using namespace std;
string str,s;
int main(){
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
getline(cin,str);
str += str[0];
for(int i = 0;i < str.size();i++){
s[i] = str[i] + str[i + 1];
}
for(int i = 0;i < str.size() - 1;i ++){
cout<<s[i];
}
return 0;
}
有没有大佬知道我为什么RE,玄关。
提交记录