Problem G. The Balance
时间限制 1000 ms
内存限制 32 MB
Now you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achievable. So you should find out the qualities which cannot be measured from the range [1,S]. S is the total quality of all the weights.
输入数据
输出数据
For each input set, you should first print a line specifying the number of qualities which cannot be measured. Then print another line which consists all the irrealizable qualities if the number is not zero.
样例输入
样例输出
$ Mathjax font initiator $