value1 = 0 and value2 = 0 with weight 0
value1 = 1 and value2 = 6 with weight 5
value1 = 2 and value2 = 4 with weight 4
value1 = 3 and value2 = 3 with weight 2
value1 = 5 and value2 = 2 with weight 4
value1 = 5 and value2 = 7 with weight 6
value1 = 8 and value2 = 5 with weight 6
我将如何将此输出存储到一个新数组中(value1、value2 和 weight 的不同数组)并比较它们