#include<bits/stdc++.h>
using namespace std;
int main(){
string str;
cin >> str;
double len = str.length();
double s = ceil((len - 4) / 3);
double n = (len - s + 1) / 2;
n = (len - s) / 2 - 1;
int left = 0, right = len - 1;
for(int i = 1; i <= (int)n; i++, left++, right--){
cout << str[left];
for(int j = 1; j <= s; j++)
cout << " ";
cout << str[right] << endl;
}
for(int i = left; i <= right; i++)
cout << str[i];
}
09-05
66
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-18
292
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-19
540
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-17
200
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交