单项选择题

No sooner had Tom seen Jim ______ he left the room.

A.when
B.before
C.than
D.then