To get in the university I wanted at first, all I needed were Bs (we use a different, number-based scale, but I
pretend to talk 'proportionally' here). For some time I was interested on getting As only, but it bored me easily, and I was quite bullied by nearly everyone at high school too, so I got really unmotivated.
During latest years, some friends on the internet and I, begun a hobby project. To success, my work on it was not only useful, but also a critical gear. It gave a whole new meaning to things like I never felt before, and my mood increased exponentially, which automatically improved my social skills, and so, to be honest, I looked less 'pathetic' and thus less "bulliable". Besides, because teachers/staff found out I was good with computers nor had issues with grades, they took me from the classroom and asked my help to remove their viruses or fix their issues, which was fun enough I have to say.
I didn't almost care for school anymore, but I looked for the university's requisites; I only studied for the minimum necessary, no more nor less. I only gave them what they wanted, "don't waste my time". My life was oriented towards the external project instead, I seen high school as a mere "job".
My time at high school turned A LOT less painful and tolerable than "should have been" otherwise. And no matter my mates' efforts or means, they just couldn't throw my mood down, which made them a little angry
Additional activities made the difference, in and outside school. There are, or should be, other options to look around. You don't need to just stay with what you have. And when you complete high school... your bullies won't even be capable to keep eye contact with you