it took me this long to stop overthinking it and now i still fail the real input lmao
272/130
once i got it working on the test cases the thing that murdered me was forgetting one of the spurious fixes i'd tried to make to get it to work on the test cases :P
note to self to use asserts more often
surprised i went up that much on part 2 because it felt like a pretty trivial modification