|
|
back to boardWA #5 My algorithm finds the numbers on the left and right, and then compares them, and takes a step toward greater. But if the sum is equal, it compares to one until it finds one larger (and goes upwards). If comparing the results in one step, then goes in the direction of the enemy. What's wrong? Re: WA #5 Try these tests first test: 10 0 0 1 10 5 100 5 1 0 0 3 8 answer: 16 106 second test 10 0 0 1 100 5 10 5 1 0 0 3 8 106 16 answer: 106 16 Re: WA #5 I am slowpock. I go AC. Edited by author 17.11.2013 02:14 |
|
|