Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
真的太水,水题菜鸟我要抓紧努力到100题!!!加油!!#include<stdio.h> int main() { int i,n,CASE=0; char a[27][27]; while(scanf("%d",&n)==1,n) { for(i=0;i<n;i++) scanf("%s",a[i]); printf("SET %d\n",++CASE); for(i=0;i<n;i++) if(i%2==0) printf("%s\n",a[i]); for(i=n-1;i>=0;i--) if(i%2!=0) printf("%s\n",a[i]); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator