Trans major from CS to Math?

I have been studying cs for a very long time, tho being year 1 rn. Recently I found myself disliking the software development side of the cs, and very much only enjoy the theoretical side of it. Specifically, the competive programming, solving difficult problems by writing algorithms. And I might be interested in the field of formal methods.

In the current curriculum, the department of cs offer many "pratical" courses which I am not particularly interested in. And I think mathematics like real analysis and abstract algebra are really fucking cool, though I only watched them on YT. Also, I love discrete math and combintorics.

I am not sure whether math or cs would fit me the most, I dont want to give up the skills that I have accumulated for the past decade, and I afraid in my city, I cannot secure a job with math (though neither cs would suffice if I am not doing dev lol). So I am quite lost, please enlighten me ;D

Author: AngerRyan