Only when Lily walked into the office ______ that she had left the contract at home.

A. she realized
B. has she realized
C. she has realized
D. did she realize
出自:英语2(本)