Norwegian public school system. Certain subjects are required to get a diploma, which is pretty much a hard requirement to even be allowed to apply to a Norwegian university. Those include PE, Norwegian writing(two separate orthographies btw and you need grades in both!) and speaking, English, a 2nd foreign language, history, social studies, some math, and first year science class. Then there's addon elective stuff. I did theoretical math, physics, chem and biology. And I pretty much nailed those subjects
What's even worse though, you can show up, pass the final exam for a subject and still fail the subject due to "insufficient attendance" throughout the year. Which is what happened to me. I was skipping class too much to write code in my room, which ironically meant I couldn't get into a CS course even though I could code circles around the well-behaved neruotypical kids who showed up for class and did their homework.