Time Limit: 1s
Memory Limit: 128MB
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.
Case 1: Yes 1 2 1 0 -1 -2 -1 0 Case 2: No
For more information, please download the problems in zip or pdf.
Any question please mail to firstname.lastname@example.org.