问题

It’s too bad that I failed in themath exam. If only I ______ hard at it!
A:worked
B:had worked
C:has worked
D:would work
B:had worked
C:has worked
D:would work
正确答案是: