The rooms and the lamps
Two rooms are connected by a corridor. In the first room there are three lamps (a, b and c) which are connected to three switches (1, 2 and 3) located in the second room. How to know which switch corresponds to each lamp having only one opportunity to move from one room to another? Consider that there is no way to peek from room to room.