# Bingo! - Testcase 1 wrong?

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.

You probably arenâ€™t handling the middle square properly.

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.

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.

2 Likes

Bingo!

Thank you! I totally overlooked the word â€śdiagonalâ€ť. The bingo outside US is totally different - I will contribute the non-US bingo puzzle today

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?

I think there is still something wrong with this puzzle. In fact when i print the ticketâ€™s numbers, this is what i get:
1 67 89 69 48
2 65 38 85 28
7 29 0 54 22
3 80 10 75 58
5 35 49 87 27

But normaly we should have :

1 67 89 69 48
72 65 38 85 28
37 29 0 54 22
83 80 10 75 58
25 35 49 87 27

Itâ€™s the same thing for the called numbers. Why is the first caractere is missing in the print and then in the rest of the program ?

You can view the test case inputs in the IDE - the numbers arenâ€™t missing. If they are missing when you print then there is something wrong in your code (either when reading or printing).

yes, but canâ€™t figure out what, i just take the inputs and print them as simple as it can be, with C

Did it. For people with the same problem, i took the â€śfgetc(stdin);â€ť away in the first loop (the row one)

Can you check the 5 players test case. Exactly the (Line 2 : The amount of numbers that need to be called before a bingo card has a full house (all numbers filled).)
I checked, and donâ€™t get 83, it always went to 88