How do people manage to pass their studies like this? Should I change flat?

I'm living in a shared flat with 5 other people who go to the same university as me. People party almost every day, everyone is constantly drunk, playing loud music and having nonstop sex.

When I joined I tried to not get dragged into it too much and focus on my studies but it became more and more difficult with time. I passed the first semester relatively easily but I'm starting to struggle now because I'm skipping a lot of classes due to hangovers or bedtime activities.

I'm thinking about changing flat but it's dirt cheap and I won't find anything similar for this price. Except for one person from my flat they seem to be doing fine but no clue how they do that. Did you party hard during your studies and still managed? Not sure how to proceed

How do people manage to pass their studies like this? Should I change flat?
Post Opinion