单项选择题

I stayed up all night ______ to find a new solution to the problem.

A.trying
B.have tried
C.try
D.tried