Project Euler 190 - Maximising a weighted product

Official link: https://projecteuler.net/problem=190