6 人解决,10 人已尝试。
8 份提交通过,共有 26 份提交。
7.3 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
We say that a sequence of integers is a one-sequence if the difference between any two consecutive numbers in this sequence is
Write a program that:
The number of test cases
In the first line of a test case there is a number
For each test case there should be written No
if such a sequence does not exist. If there is more than one solution your program should output any one.
Consequent test cases should by separated by an empty line.
1 8 4
0 1 2 1 0 -1 0 1
6 人解决,10 人已尝试。
8 份提交通过,共有 26 份提交。
7.3 EMB 奖励。