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

真的太水,水题菜鸟我要抓紧努力到100题!!!加油!!

Posted by H3100402061 at 2011-06-03 21:41:06 on Problem 2013
#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:
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