First, turn on one of the switch for a long time, e.g. 5 minutes, then switch it off, then turn on another switch, then immediately go to the tenth floor.
On the tenth floor, see which light bulb is turned on. that light bulb corresponds to the switch which is turned on at last.
Sense the two light bulb which is not turned on, see which one is hotter, the one which is hotter corresponds to the switch which has been turned on for a long time but turned off subsequently.