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 |
这个简单的题目是我AC的第100题,纪念一下,贴程序#include<stdio.h> main() {int i,n,count; char s[15][27]; count=1; while(scanf("%d",&n)!=EOF) {if(n==0)break; for(i=0;i<n;i++) scanf("%s",s[i]); printf("SET %d\n",count++); for(i=0;i<n;i+=2) printf("%s\n",s[i]); for(i=n-1-n%2;i>0;i-=2) printf("%s\n",s[i]); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator