#include <iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
char str[100];
scanf("%s",str);
int len=strlen(str);
int n1,n2,n=0,i=1;
while(3*i<=len+2) i++;
n1=i-1;
n2=len+2-2*n1;
for(i=1;i<n1;i++,n++){
printf("%c",str[n]);
for(int j=0;j<n2-2;j++) printf(" "); //space
printf("%c\n",str[len-1-n]);
}
for(i=n;i<n1+n2-1;i++) printf("%c",str[i]);
return 0;
}
相关文章
- 10-29浙大 PAT 甲级 1031 Hello World for U 排版题总结
- 10-291031 Hello World for U (20分)
- 10-291031 Hello World for U
- 10-291031 Hello World for U (20分)
- 10-291031 Hello World for U (20分)
- 10-29pat甲级 1031 Hello World for U
- 10-291031 Hello World for U (20 分)
- 10-29PAT A 1031 Hello World for U
- 10-291031 Hello World for U (20分)
- 10-29PAT (Advanced Level) Practice 1031 Hello World for U (20 分) 凌宸1642