A master thief leaves a safe behind with a note: 'The combination is a 4-digit number where the first digit is the number of zeros in the code, the second is the number of ones, the third is the number of twos, and the fourth is the number of threes.' What is the 4-digit combination?
1210
Testing 1210: It contains one '0', two '1's, one '2', and zero '3's. Matching the digit positions to these counts gives 1 (zeros), 2 (ones), 1 (twos), 0 (threes) -> 1210.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Hard. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
Four people stand single-file facing a wall: Person 1 sees Persons 2 and 3; Person 2 sees Person 3; Person 3 sees only the wall; Person 4 is behind a solid barrier and sees no one. They know there are 2 black hats and 2 white hats among them. Person 1 says, 'I do not know my hat color.' Upon hearing this, Person 2 immediately states their own hat color correctly. How did Person 2 know?
A botanist grows a rare lily pad in a pond that doubles in surface area every single day. If it takes 30 days for the lily pad to cover the entire surface of the pond, how many days did it take to cover exactly half of the pond?
Three detectives—Holmes, Poirot, and Marple—each solve a different mystery involving a missing gem: a Ruby, a Diamond, or an Emerald. 1. Holmes did not solve the mystery of the Ruby. 2. The investigator who solved the Emerald mystery was not Marple. 3. Poirot solved the mystery of the Diamond. Who solved the mystery of the Ruby?
A room contains three light switches connected to three turned-off bulbs in another room. You can flip switches in the first room as much as you like, but you can make only one trip into the room with the bulbs. One of the switches is broken and does nothing. You turn Switch A on for 10 minutes, then turn it off and turn Switch B on. Walking into the bulb room, you find Bulb 1 is hot and off, Bulb 2 is lit, and Bulb 3 is cold and off. Which switch is broken?
Three suspects are interviewed about a stolen painting. Arthur says, 'Ben did it.' Ben says, 'Carl did it.' Carl says, 'Ben is lying.' Only one statement among the three is true. Who stole the painting?
An island is inhabited solely by Knights (who always tell the truth) and Knaves (who always lie). You meet two residents, X and Y. X says: "At least one of us is a Knave." What are X and Y?

