#P1152. 欢乐的跳
欢乐的跳
Description
An integer array with elements is called a jolly jumper if the absolute differences between each pair of consecutive elements include all integers in . For example, the array is a jolly jumper because the absolute differences are .
Given an array, your task is to determine whether it is a jolly jumper.
Input Format
Each test case starts with an integer , followed by space-separated integers in .
Output Format
For each test case, output one line. If the array is a jolly jumper, output Jolly; otherwise, output Not jolly.
4 1 4 2 3
Jolly
5 1 4 2 -1 6
Not jolly
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号