单项选择题

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

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