All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Curious Candidate Concern (Posted on 2010-02-02)
There are six civil service job openings. Allen, Betty, Candice, Denise, Edwin, Francine, Greg, Hannah, Jane, Kyle, Leon, Mitch, Norman are the thirteen candidates who passed the civil service exam with equally high scores. So the administrators gave them all a second test. This one had only five questions, each with a Yes/No answer.

The test results of the candidates had thirteen different answer sequences. The top six had the same number of correct answers and were all hired. Three of those who were not hired, had their answer sequences as follows:
• No, No, Yes, No, No
• Yes, No, No, Yes, Yes
• Yes, Yes, Yes, No, Yes
Determine the correct sequence of answers.

 See The Solution Submitted by K Sengupta No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 computer-assisted solution | Comment 2 of 3 |

The winning candidates could not have answered more than three correctly, as there are only five possible sets of four correct answers (five ways of determining the sole incorrect answer) but there were six different sets of answers among the winnters, as all 13 candidates had different sets of answers, including these six.

Depending on the correct Y/N sequence, the scores of the non-hires whose answer sequences are shown would be as follows:

`NNNNN          4  2  1NNNNY          3  3  2NNNYN          3  3  0NNNYY          2  4  1NNYNN          5  1  2NNYNY          4  2  3NNYYN          4  2  1NNYYY          3  3  2NYNNN          3  1  2NYNNY          2  2  3NYNYN          2  2  1      *NYNYY          1  3  2NYYNN          4  0  3NYYNY          3  1  4NYYYN          3  1  2NYYYY          2  2  3YNNNN          3  3  2YNNNY          2  4  3YNNYN          2  4  1YNNYY          1  5  2YNYNN          4  2  3YNYNY          3  3  4YNYYN          3  3  2YNYYY          2  4  3YYNNN          2  2  3YYNNY          1  3  4YYNYN          1  3  2YYNYY          0  4  3YYYNN          3  1  4YYYNY          2  2  5YYYYN          2  2  3YYYYY          1  3  4`

The only set where all the non-hires scored under three is marked with an asterisk: NYNYN, so that is the correct sequence.

ans\$(0) = "N": ans\$(1) = "Y"
CLS
FOR a = 0 TO 1
FOR b = 0 TO 1
FOR c = 0 TO 1
FOR d = 0 TO 1
FOR e = 0 TO 1
s1 = ABS((a = 0) + (b = 0) + (c = 1) + (d = 0) + (e = 0))
s2 = ABS((a = 1) + (b = 0) + (c = 0) + (d = 1) + (e = 1))
s3 = ABS((a = 1) + (b = 1) + (c = 1) + (d = 0) + (e = 1))
PRINT ans\$(a); ans\$(b); ans\$(c); ans\$(d); ans\$(e),
PRINT s1; s2; s3,
IF s1 < 3 AND s2 < 3 AND s3 < 3 THEN PRINT "*":  ELSE PRINT
NEXT
NEXT
NEXT
NEXT
NEXT

 Posted by Charlie on 2010-02-02 13:37:02

 Search: Search body:
Forums (0)