I'm having a bit of a trouble with problem 10812: Beat the Spread! Although the problem seems more than easy: x+y = s, x-y = d => ... => x = (s+d)/2 and y = (s-d)/2, finally check if both x and y a are non negative.
The problem is that I keep getting WA and I cannot figure why. Any ...