I remembered( )the door before I left the office,but forgot to turn off the lights.

问题描述:

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.

选B ,remember to do 记得去做某事,意思是“在我离开办公室前记得要去关门,但忘了去关灯”(时间是离开办公室之前,当时记得的应该是“去关门”,而不是“记得关了门)
另外,如果选A的话C也对,因为它们两个都表示”记得做了某事“