jens, the problem your task has is that you don't say what is approved as optimal.

you just say better.
this leaves all the judging not to rules but to you per code.

if we go for optimal, we should do a script that does full scan for all possibilities and see the perfect results and then say those are the optimal scores.

now, there is nothing to hang on.

just like jack pointed in side note, this looks like not golf but mathematical course.
_________________________
!

download KiXnet