Bingo! - Testcase 1 wrong?


#1

Hi everyone.

My code for Bingo! puzzle successfully passes all testcases, except the simplest one (1 Player). I double checked it manually and it seems that the testcase result for the first line is wrong - it should be 56, not 54.

Could you please check?


#2

You probably aren’t handling the middle square properly.


#3

I think I am.

There is an easy was to check this - the expected “answer” is 54. 54th number is 1, which is in the top left corner of the card (so middle square does not matter).

Also, numbers 89 and 69 from the first row are drawn after the number 1. Same goes for numbers 72, 37 and 25 from the first column. Therefore, number 1 (drawn as 54th) cannot be the solution.


#4

Puzzle link: bingo!.

A line on the bingo card is defined as any row, column or diagonal of 5 numbers on the card.

When I ignore the diagonal, I get 56. With them it’s 54. And of course there must be a bug in the problem that has 250 solvers already.


#5

Bingo! :smile:

Thank you! I totally overlooked the word “diagonal”. :blush: The bingo outside US is totally different - I will contribute the non-US bingo puzzle today :slight_smile:

I saw that a lot of users solved the problem, but also with the fact that only one of 131 cases failed. Shouldn’t there be more diagonal cases, statistically?