# Switching Logic

You are in a basement. In front of you are three light switches, all in their OFF state. These switches are connected to three lightbulbs that are on a wall in the attic, so there's no chance you can see them unless you climb the stairs all the way up. There is a 1-to-1 mapping between the switches and the bulbs.

You are given plenty of time to play around with the switches in the basement, where you can put each individual switch in either its ON or OFF state.

However, you can only go upstairs once to check on the state of the bulbs!

Once you've gone upstairs and checked on the bulbs, you must be able to tell with 100% certainty which bulb is connected to which switch, without having to go down again.

How can you tell which switch is connected to each bulb?

Notes:
• You can't put a switch halfway between ON and OFF, hoping that this would make the bulb flicker like a bad neon light...
• You can't control the switches from a distance, eg with a string or whatever other form of remote control.
• You can't have anyone cooperating with you on the other floor, and that includes your dog who knows how to bark once for a 'yes' and twice for a 'no'.

### Switching Logic Puzzle Solution

Turn switch #1 ON. After about five minutes or so, turn switch #1 OFF and turn switch #2 ON.
Then go upstairs and check on the bulbs.

The one ON is obviously #2. The other ones are OFF, but one of them should be very hot by having been ON for five minutes. That's #1, and the remaining bulb is #3.