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 |
什么数据结构都不用,直接输出就好了。附小代码main(){char s[16][32];int n,i,t=0;while(scanf("%d",&n)&&n){for(i=0;i<n;i++)scanf("%s",s[i]);printf("SET %d\n",++t);for(i=0;i<n;i+=2)puts(s[i]);for(i=(n|1)-2;i>0;i-=2)puts(s[i]);}} Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator