Find The Code

Logic Level 3

You are given some hints and on the basis of these hints you have to find the exact code. The code consists of five single digit number ( 0 0 to 9 9 , both inclusive) which may repeat in the code.

If your code is A B C D E \boxed A \ \boxed B \ \boxed C \ \boxed D \ \boxed E , enter 10000 A + 1000 B + 100 C + 10 D + E 10000A+1000B+100C+10D+E as your answer. If you think that the hints given are insufficient to find the code, enter 1 -1 as your answer.

The hints for the codes are given below:

  • 4 7 1 0 9 \boxed 4 \ \boxed 7 \ \boxed 1 \ \boxed 0 \ \boxed 9 : One number is correct and correctly placed.
  • 8 4 5 7 0 \boxed 8 \ \boxed 4 \ \boxed 5 \ \boxed 7 \ \boxed 0 : Two numbers are correct but wrongly placed.
  • 2 0 4 5 1 \boxed 2 \ \boxed 0 \ \boxed 4 \ \boxed 5 \ \boxed 1 : One number is correct but wrongly placed.
  • 2 4 6 9 1 \boxed 2 \ \boxed 4 \ \boxed 6 \ \boxed 9 \ \boxed 1 : Two numbers are correct and placed with a single number between them in the answer code.
  • 7 5 9 6 2 \boxed 7 \ \boxed 5 \ \boxed 9 \ \boxed 6 \ \boxed 2 : Two numbers are wrong and continuously placed in this hint.
  • 9 0 4 3 5 \boxed 9 \ \boxed 0 \ \boxed 4 \ \boxed 3 \ \boxed 5 : One number is correct and correctly placed.


The answer is 67238.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Chew-Seong Cheong
Mar 29, 2020

First consider hints 1: 4 7 1 0 9 \boxed 4 \boxed 7 \boxed 1 \boxed 0 \boxed 9 and hint 6: 9 0 4 3 5 \boxed 9 \boxed 0 \boxed 4 \boxed 3 \boxed 5 both "One number is correct and correctly placed". Since 0 0 , 4 4 , and 9 9 appear in both hints and none of them is at the same position in both hints, this means that they are all wrong numbers. Shade out the wrong numbers for better visual and we have the diagram on the left. Now we can clearly see the correct and correctly place number in hint 1 is either 7 7 or 1 1 and that of hint 6 is either 3 3 or 5 5 .

Second diagram: From hint 5, 7 5 9 6 2 \boxed 7 \boxed 5 \boxed 9 \boxed 6 \boxed 2 , we know that the wrong numbers are continuously placed. Since 9 9 is wrong, either 5 5 or 6 6 is wrong, but 7 7 and 2 2 are definitely correct. Let's highlight the correct number and may not be correctly placed with yellow.

Hint 1: 4 7 1 0 9 \boxed 4 \boxed 7 \boxed 1 \boxed 0 \boxed 9 Now that we know that 7 7 is correct and there is only one correct and correctly placed in this hint, 7 7 must be the number. Let's highlight correct and correctly placed number with green. Then 1 1 in this hint must be wrong. Shade out 1 1 in all the hints.

Hint 4: 2 4 6 9 1 \boxed 2 \boxed 4 \boxed 6 \boxed 9 \boxed 1 After shading out 1 1 , the remaining 2 2 and 6 6 must be correct as mentioned by this hint.

Hint 5: 7 5 9 6 2 \boxed 7 \boxed 5 \boxed 9 \boxed 6 \boxed 2 Now 5 5 must be the wrong number.

Hint 6: 9 0 4 3 5 \boxed 9 \boxed 0 \boxed 4 \boxed 3 \boxed 5 What remains in the hint is 3 3 which is correct and correctly placed.

hint 2: 8 4 5 7 0 \boxed 8 \boxed 4 \boxed 5 \boxed 7 \boxed 0 What remains in the hint are 8 8 and 7 7 . 8 8 must be the other correct number but wrongly placed.

Now we have the five correctly number 2 2 , 3 3 , 6 6 , 7 7 , and 8 8 , with two numbers correctly place, 3 3 (fourth place) and 7 7 (second place). From hints 2 and 3, we know that 2 2 and 8 8 cannot be at the first place 6 6 must be at the first place. From hint 4, 2 2 and 6 6 must be separated by a number, 2 2 must be in the middle, leaving 8 8 to the last. Therefore the code is 6 7 2 3 8 \boxed 6 \boxed 7 \boxed 2 \boxed 3 \boxed 8 .

First let us number the hints from top to bottom as Hint 1 to Hint 6 \text{First let us number the hints from top to bottom as Hint }1\text{ to Hint }6

Taking the Hint 5 first : possibilities of wrong numbers are ( a ) 7 and 5 or ( b ) 5 and 9 or ( c ) 9 and 6 or ( d ) 6 and 2 \text{Taking the Hint }5\text{ first : possibilities of wrong numbers are }\newline (a)\, 7\text{ and }5\text{ or}\newline(b)\,5\text{ and }9\text{ or}\newline(c)\,9\text{ and }6\text{ or}\newline(d)\,6\text{ and }2

( a ) cannot be true because if 7 and 5 are wrong numbers that means 9 , 6 and 2 are correct numbers which makes the statement of Hint 4 false. ( c ) cannot be true because if 9 and 6 are wrong numbers that means 7 , 5 and 2 are correct numbers which makes the statement of Hint 3 false. ( d ) cannot be true because if 6 and 2 are wrong numbers that means 7 , 5 and 9 are correct numbers which makes the statement of Hint 1 false. ( b ) is true because no other statements are contradicting this. Hence 5 and 9 are wrong numbers and 7 , 6 and 2 are correct numbers Taking this information and going to Hint 3 we will get that 0 , 4 and 1 are also wrong numbers. So till now 0 , 1 , 4 , 5 and 9 are wrong numbers. In Hint 2 we know 0 , 4 and 5 are wrong numbers which means 7 and 8 are correct numbers. In Hint 6 we know 0 , 4 , 5 and 9 are wrong numbers which means 3 is the correct number. So we get 2 , 3 , 6 , 7 and 8 are correct numbers. Positions of 7 and 3 are known using Hint 1 and Hint 6 respectively. Now remaining vacant positions are Position 1,3 and 5. Number 8 cannot be at Position 1 because of Hint 2 and also not at Position 3 because if it is placed at position 3 then 2 and 6 will have 3 numbers between them. Hence 8 will be placed at position 5. Now 2 cannot be at Position 1 because of Hint 3 so 2 will be at position 3 and 6 will be at position 1 (a) \text{ cannot be true because if }7\text{ and }5\text{ are wrong numbers that means }9,6\text{ and }2\text{ are correct numbers which makes the statement of Hint 4 false.}\newline (c) \text{ cannot be true because if }9\text{ and }6 \text{ are wrong numbers that means }7,5\text{ and }2\text{ are correct numbers which makes the statement of Hint 3 false.}\newline (d)\text{ cannot be true because if }6\text{ and }2\text{ are wrong numbers that means }7,5\text{ and }9\text{ are correct numbers which makes the statement of Hint 1 false.}\newline (b) \text{ is true because no other statements are contradicting this. Hence }5\text{ and }9\text{ are wrong numbers and }7,6\text{ and }2\text{ are correct numbers}\newline \text{Taking this information and going to Hint }3\text{ we will get that }0,4\text{ and }1\text{ are also wrong numbers. So till now }0,1,4,5\text{ and }9\text{ are wrong numbers.}\newline \text{In Hint }2\text{ we know }0,4\text{ and }5\text{ are wrong numbers which means }7\text{ and }8\text{ are correct numbers.}\newline \text{In Hint }6\text{ we know }0,4,5\text{ and }9\text{ are wrong numbers which means }3\text{ is the correct number. So we get }2,3,6,7\text{ and }8\text{ are correct numbers.} \newline \text{Positions of }7\text{ and }3\text{ are known using Hint 1 and Hint 6 respectively. Now remaining vacant positions are Position 1,3 and 5. Number } 8 \text{ cannot }\newline\text{be at Position 1 because of Hint 2 and also not at Position 3 because if it is placed at position 3 then 2 and 6 will have 3 numbers between them.}\newline\text{Hence 8 will be placed at position 5. Now 2 cannot be at Position 1 because of Hint 3 so 2 will be at position 3 and 6 will be at position 1} \newline

Hence the code is 6 7 2 3 8 . So the answer is 67238. \text{Hence the code is } \boxed{6}\boxed{7}\boxed{2}\boxed{3}\boxed{8}. \text{ So the answer is }67238.

@Shikhar Srivastava , you don't need to enter text in LaTex. It is both difficult and not the standard used by Brilliant.org. As you can see in thousands of problems and solutions written in the website. The text would not flow when the page change in dimensions.

Chew-Seong Cheong - 1 year, 2 months ago

Log in to reply

Okay, I will not write text in LaTex.

Shikhar Srivastava - 1 year, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...