AHAHAHAHA I THREW DEC GOLD SO HARD
only managed to cumulatively solve one problem, that's how sad i am
my friends kept on asking me for help on this
one silver problem, and to be fair, it is pretty hard
the fact that benq's editorial reads like some post-college math paper doesn't help either
(my solution requires knowledge of prefix sums tho)
but without further ado, here's my solution