I would really appreciate you. You are very conscious about your academics. It doesn't matter if you could not get the required result. Always care about the concept you learn. If you have not learnt the concept, you fail even you secure A+ grade as a result. And if you have grasped the concept rightfully, you succeed even if you secure lower grade. Keep a vigilant eye on your own learning. Test yourself frequently. The happiness you get after learning a concept what you didn't know is real.