问题

I remembered ________ the door before I left the office, but forgot to turn off the lights.[ ]

A: locking
B: to lock
C: having locked
D: to have locked
正确答案是: