Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这个简单的题目是我AC的第100题,纪念一下,贴程序

Posted by yiyiyi4321 at 2005-11-07 10:39:24 on Problem 2013
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator