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

当且仅当充满1~n-1....

Posted by wrong123 at 2006-01-01 18:52:02 on Problem 2575
In Reply To:!~郁闷…… Posted by:15pengyi at 2006-01-01 15:32:09
如果相邻的2个数其差的绝对值恰好为1到n-1。例如:
   1 4 2 3
就是jolly jumper(n=4)。因为相邻2数的差的绝对值为3,2,1,就是1到n-1。

但是
 1 4 2 -1 6
不是jolly jumper(n=5)。因为相邻2数的差的绝对值为3,2,3,7,并非1到n-1。

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