Bug in Test Cases

Add a reply

Posted by Meritt 266 days ago:
My 69b solution only passed because the test case generator was nice to me. The best I can find so far is 72b that works every time. I have a feeling the other 69b PHP entries are abusing the test-case generator too :P
Posted by mightybs 265 days ago:
For Ruby I submitted a 88b version which passed 19 out of 20 tests. With those odds I figure I could've easily tried uploading again and be lucky enough to have it work just fine, but I went back and eventually found my bug which took me back to 91b. So it is definitely possible with randomly generated tests to be able to pass them all and just be lucky, I think perhaps that was why they decided on 20 tests. I say take from this discovery what you can ... Just because it looks like its working, does not mean its always working properly. Remember, code review catches more errors (and sometimes more serious errors) than testing can, because the tests can be easily fooled.
Posted by pung96 262 days ago:
My 69b solution only passed because the test case generator was nice to me. The best I can find so far is 72b that works every time. I have a feeling the other 69b PHP entries are abusing the test-case generator too :P

Actually my 10th 48b solution has bug too, but passed. It doesn't calculate sum of first column. I hope that more test will be added. It need 20 test to cover all calculations.
Posted by terjek 261 days ago:
I wonder if the 45's were possible because of missing tests, but will fail now ?

Terje K
Posted by o0lit3 258 days ago:
I wonder if the 45's were possible because of missing tests, but will fail now ?

Terje K

I have run my particular 45 through the test cases several times without failures.

I will say, however, that if there was a test case such that the grid contained identical rows (exact same numbers in the exact same order), then the script might fail.

-o0lit3

Posted by SlashLife 225 days ago:
I have a feeling the other 69b PHP entries are abusing the test-case generator too :P

Mhh ... I'm down to an honest 69b now ... now I'll need some trickery to get the 67. :D
Posted by gatopeich 222 days ago:
Got a 1 in 20 "failed" result where my script was giving the good answer (704 or so) and the "expected output" box was empty!

Too bad I reloaded the page and lost it...
Posted by gatopeich 222 days ago:
Got a 1 in 20 "failed" result where my script was giving the good answer...

Here is the test case:

Input:
68 57 92 59 10 70 29 40 55 76
25 02 05 52 39 03 97 22 25 93
12 21 39 26 81 38 96 88 35 83
88 75 94 62 30 68 96 42 09 61
36 99 17 25 44 02 40 12 57 66
40 03 68 39 77 17 15 97 07 76
77 23 07 68 56 19 96 07 53 78
86 27 06 90 14 07 22 77 09 08
43 58 22 35 05 27 26 19 92 60
53 91 01 74 69 58 55 08 07 11

My output: 625 (4th row)

Expected Output: (empty)

:-/

Add a reply