Sometimes you cannot interpret the problem using your own understanding of "Bad magician"
The description is fairly clear. --- If there is a single card the volunteer could have chosen, y should be the number on the card. If there are multiple cards the volunteer could have chosen, y should be "Bad magician!", without the quotes. If there are no cards consistent with the volunteer's answers, y should be "Volunteer cheated!", without the quotes. --- As you can see, you should output "Bad magician!" only if multiple cards could have been chosen by volunteer. As you said before, the result may depend on volunteer choices, but as long as only a single card the volunteer could have chosen, you should still output the number on the card instead of thinking that he is a bad magicians. 2014-04-13 19:54 GMT+08:00 newbie007 <[email protected]>: > Hi, > > If in the second arrangement, the cards from the first chosen row are not > all in different rows, then he IS a Bad magician! > I know that the magician may be luck and still be able to find the card > depending on the volunteer choices, but it doesn't change the fact that he > IS a Bad magician! > > For me this is not a corner case. It is one thing that was not clear in > the problem, so it should be covered in the sample cases. > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/44c1d60f-7972-4447-ab88-d22c3fe467fa%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CAGDEU-LZ_yVkN28NaV_zfZ2kFH_OH2%2BoRp1Tq3qbgDMD%3DguyKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
