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 wkwj520 at 2009-04-23 15:41:22 on Problem 2039
可以把输入的字符串看做是二维数组,再分作m/n/2次循环输出,每次输出两个上下相邻的数,然后再考虑下m/n%2!=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