Shadow clone jutsu your textbooks until you get an A.
On a more serious note, determine what you did not do that you could've done.
Were you studying your lecture notes daily? Were you doing practice problems daily? Were you going over *all* of your lecture slides and doing *all* of the available practice problems before the exam?