You are a prisoner and a guard decides to give you a chance for freedom.
He brings you to an abandoned warehouse where there are three doors. The guard shows you three switches on a wall near the warehouse entrance, and tells you that they are power switches connected to the three rooms, each with a lamp on a table. He even shows you and sure enough, there is one lamp shade on a small square table in each of the rooms and it’s the only thing plugged in.
The task is to find which switch powers which room.
You can flick the switches as many times as you need but when you’re done, they can’t be changed when you go to inspect the rooms.
You can only enter a room once and close the door behind you when you go to the next room.
All the doors stay closed until you are going through them, there are no windows, cracks or openings as far as you can tell.
You think this is pretty stupid, but you also want freedom and you would try it if it means you have a chance of success. So you start flicking a switch to see if maybe you can see light under a door but you can’t see anything.
How do you solve this?