相关代码 |
|
/* This Code is Submitted by wywcgs for Problem 1684 on 2005-03-21 at 20:07:20 */ #include int main() { char name[16][26], *fname[16]; int n, time = 0; int j; while(scanf("%d", &n) == 1){ if(n == 0){ return 0; }else{ time++; for(j = 0; j < n; j++){ scanf("%s", name[j]); if(j % 2 == 0){ fname[j/2] = name[j]; }else{ fname[n-j/2-1] = name[j]; } } printf("SET %d\n", time); for(j = 0; j < n; j++){ printf("%s\n", fname[j]); } } } return 0; }
相关资源 |
|