[ create a new paste ] login | about

Link: http://codepad.org/tIUnIkrc    [ raw code | fork ]

infgeoax - Python, pasted on Aug 11:
1
2
def min_scalar_product(v1, v2):
    return sum([x * y for x, y in zip(sorted(v1), sorted(v2, reverse=True))])


Output:
No errors or program output.


Create a new paste based on this one


Comments: