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

什么数据结构都不用,直接输出就好了。附小代码

Posted by Eov_Second at 2016-12-06 18:12:26 on Problem 2013
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:
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