Gifted programs and advanced classes were what kept me in school, the only things that got my grades up tho were classes with rigid rules. I had one class and where if you showed up late once / didn’t hand in one assignment you failed.
I got straight As that semester. The rest of school was just min/max’ing to average out with a C and not do any homework.