Maximize Score After N Ops
Given 2n integers, repeatedly pair up two remaining numbers and add their greatest common divisor to a score. Maximize the total score after n operations.
Given 2n integers, repeatedly pair up two remaining numbers and add their greatest common divisor to a score. Maximize the total score after n operations.