The sentence describes an action that continued throughout the night and led to exhaustion. The present perfect continuous tense ('have been studying') is appropriate for an action that started in the past and continued up to the present.
C. 've been studying