This is a pretty vague question as stated. The answer depends on why you think being a utilitarian is relevant here. My best guess as to the motivation behind this question is that that you have a different target than getting good grades in college - this article might help you. https://mindingourway.com/half-assing-it-with-everything-youve-got/
If you're not planning to go to grad school (and maybe even if you are), getting straight As in college probably means a lot of unnecessary effort.
Assuming you don't plan to go to gradschool. Then, do you think that the highest impact jobs you could apply to probably don't require stellar grades? Or that they don't increase your chances of getting the job a lot?
That seems like a crux to me