单项选择题

Hardly ______ when the door suddenly closed.

A.they had arrived
B.they arrived
C.did they arrive
D.had they arrived