Since 1 > 0 (X>Y), I think "1 0 1" is illegal output.cyfra wrote:Here is the example: 1 3
My program 1 0 1
Your program -2 1 1
it is correct, but don't forget about this:
X<=Y and |X|+|Y| is the minimal.
"-2 1 1" seems right to me (but I'm getting WA on it right now).