单项选择题

He can only blame himself for failing the exam. He()harder during the year, but he seemed to go out with a different girl every weekend.

A. would have worked
B. should have worked
C. must work
D. ought to work