Sadly my course at university was too easy - most of the times i could easily wing the exams, prepare for a presentation day before, and do the same thing to the project - and get equivalent of B.
Professors were also good at teaching, which reduced the need to study at home even further.
It hurt me in the long run - i am really bad at putting in effort unless something catches my attention(thankfully programming can totally absorb me), and i quite frequently 'wait for the spark'(walking helps with that a lot).