Minimum Scalar Product solutions

Minimum Scalar Product was solved using JavaScript by 3 contestants. Solution sizes: average 2434 bytes (shortest: 1853; longest: 3100).