The promised images!
Part 1 - Answer
Part 2 - Answer
Annnnnd, by posting these pictures, I see that the optimization for part 2 is to bound yourself by the points. 10000 is a bit of a red herring.
Found some problems with my image processing and fixed them.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.