单项选择题

The scientist ______ his great energy and endurance to his habit of, dozing off whenever he wanted.

A.contributed
B.attributed
C.devoted
D.distributed