12. (15th All-Russian Mathematical Olympiad, 1989) Insert “+” or “-” signs between the numbers . What is the smallest non-negative number that can be obtained from the resulting sum?
Problem 699
Official solution
12. Except for 995, all numbers can be divided into 994 pairs: . Since the parity of the two numbers in each pair is the same, the result of the operation is always even regardless of how the “+” or “-” signs are placed before each pair. Since 995 is odd, the sum of the numbers with any placement of “+” or “-” signs is always odd. Therefore, the smallest non-negative number that can be obtained is not less than 1.
On the other hand, the number 1 can be obtained in the following way:
Therefore, the smallest non-negative number that can be obtained from the sum is 1.