Jolly Jumpers
Time Limit: 1000MS | Memory Limit: 65536K | |
Total Submissions: 13365 | Accepted: 4128 |
Description
A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance,