Search found 2 matches

by noddy693
Mon Mar 21, 2005 2:44 am
Forum: Volume 108 (10800-10899)
Topic: 10812 - Beat the Spread!
Replies: 35
Views: 18510

mf wrote:You should check whether all these conditions hold: s >= d, (s + d) even, (s - d) even. Even either fails, the answer is "impossible."
Many thanks for your help. I forgot to check the even conditions.

./noddy
by noddy693
Mon Mar 21, 2005 2:02 am
Forum: Volume 108 (10800-10899)
Topic: 10812 - Beat the Spread!
Replies: 35
Views: 18510

10812 - Beat the Spread!

Hello all, 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 sugest...

Go to advanced search