Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values ofProblem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 20:50:44
Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values ofProblem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on

Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values ofProblem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on
Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of
Problem 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,
1 4 2 3
is a jolly jumper,because the absolutes differences are 3,2,and 1 respectively.The definition implies that any sequence of a single integer is a jolly jumper.You are to write a program to determine whether or not each of a number of sequences is a jolly jumper.
Input
Each line of input contains an integer n < 3000 followed by n integers representing the sequence.
Output
For each line of input,generate a line of output saying "Jolly" or "Not jolly".
Sample Input
4 1 4 2 3
5 1 4 2 -1 6
Sample Output
Jolly
Not jolly
Problem Source
Waterloo 2000
Submit Discuss Judge Status Problems Ranklist
怎么编程,

Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values ofProblem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on
我的回答在你邮箱里了

杭电上的题目Problem Description输入n(n description how can we treat the gas problem of infant when we use lactogen.I mean theDetailed description of the problem and help respondents provide accurate answers to Formal analogue是什么意思rmal analogue Analogy Can you find a problem analogous to your problem and solve that?MapHeuristic Informal Description Formal analogue Analogy Can you find a problem analogous to your problem and Mapsolve that?Generaliz problem 英语翻译Description? description page description是什么意思? DESCRIPTION是什么意思 description是什么意思? Item Description 好听的英文名字l开头的 我是射手座女孩Detailed description of the problem and help respondents provide accurate answers to write a brief description of three social problems in the city,and then write 2 causes and 2 effects of that social problem 湖南大学acm10007题Prime Test Time Limit: 5000ms, Special Time Limit:10000ms, Memory Limit:65536KB Total submit users: 463, Accepted users: 65 Problem 10007 : No special judgement Problem description Given a big integer number, you are requir 能被3整除的数 Problem Description 找出数组a中能被 3整除的数 要求用数组完...能被3整除的数 Problem Description找出数组a中能被 3整除的数要求用数组完成. Input输入整数N,代表N组数据.接下来的N行 description和description of的区别 Problem description A sequence of n > 0 integers is called a jolly jumper if the absolute values ofProblem description A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on C语言循环结构程序设计类型的题Problem A:循环:求整数n之内能被3整除的所有数之积Description求整数n之内(含n,n