单项选择题

It ______ for a week and the streets were flooded.

A.has rained
B.had been raining
C.was raining
D.rained