Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
当且仅当充满1~n-1....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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator