单项选择题

(Only when) it (started) to rain (he noticed) that he (had left) his raincoat somewhere.

A.A
B.B
C.C
D.D