You now have an array aaa and you can construct an array bbb of any length, where each element is an element that has appeared in array aaa. The set cccis all possible sums of the array bbb, find the largest integer which is not in set ccc.
You now have an array aaa and you can construct an array bbb of any length, where each element is an element that has appeared in array aaa. The set ccc is all possible sums of the array bbb , find the largest integer which is not in set ccc.
(图片来源网络,侵删)