HUST Monthly 2011.06.26 (Personal Contest)

From: 2011-06-26 14:30:00 To: 2011-06-26 17:30:00 Now: 2017-09-22 06:57:00 Status: Public

E - Tobor and Numbers

Time Limit: 1s Memory Limit: 128MB

Special Judge Submissions: 278 Solved: 96


After the hard tasks, It’s the easy time for Y.G.Tobor and Y.D.I.

Isha is a friend of Y.D.I, as he thinks Tobor is smart too, he give Tobor a problem. This problem can describe as follow:

Tell N continuous numbers, where these N numbers are integers in the range of [-1000,1000], and the sum of these N numbers is zero.

Note:Two numbers are considered continuous iff the absolute value of difference between these two numbers is only 1.

Tobor is so smart that she solve this problem in just 10 days, and how goes on you?



There are multiple cases, you need process to EOF.

Every line contains an integer N which is an even number in the range of (0, 50000000]



Print case number first. Print “Yes” and these N numbers if these numbers are exits, print “No” otherwise. No blank lines between cases. See Sample Output.

The totally output size is always less than 512Kb.

Sample Input
Sample Output
Case 1:
1 2 1 0 -1 -2 -1 0
Case 2:


For more information, please download the problems in zip or pdf.

Any question please mail to