评分方式:
有n个整数的序列我们称为jolly jumper,如果相邻的2个数其差的绝对值恰好为1到n-1。例如:
不是jolly jumper(n=5)。因为相邻2数的差的绝对值为3237,并非1到n-1。
你的任务是写一个程式来判断一个整数序列是否为jolly jumper。
每组测试资料一列,第一个正整数为 n(n < 3000),代表此整数序列的长度。接下来有n个整数,代表此整数序列。请参考Sample Input。
对每一组测试资料,输出此整数序列是否为jolly jumper。请参考Sample Output。