#include<stdio.h>
#include<string.h>
int main(){
int i,j,flag,n,times,num;
char str[15][26];
char ch[26];
times = 1;
while(scanf("%d",&n)&&n){
flag = 0;
i = 0;
j = n - 1;
num = n;
while(n--){
scanf("%s",ch);
if(flag == 0){
strcpy(str[i],ch);
flag = 1;
i++;
}
else{
strcpy(str[j],ch);
flag = 0;
j--;
}
}
printf("SET %d\n",times);
for(i = 0;i<num;i++)
printf("%s\n",str[i]);
times++;
}
return 0;
}
zoj 2172 Symmetric Order
最新推荐文章于 2018-08-04 17:34:00 发布