单项选择题

If only I ______ hard in the past few months! But I didn"t work hard enough and failed the maths examination,

A.work
B.worked
C.have worked
D.had worked