Problem 105
Special Subset Sums: Testing
Let
; that is, sums of subsets cannot be equal.- If
contains more elements than then .
For example,
Using sets.txt (right click and “Save Link/Target As…”), a 4K text file with one-hundred sets containing seven to twelve elements (the two examples given above are the first two sets in the file), identify all the special sum sets,
NOTE: This problem is related to Problem 103 and Problem 106.
特殊的子集和:检验
记
;也就是说,任意子集的和都不相同。- 如果
中的元素比 多,则 。
例如,
在文本文件sets.txt中有一百组包含七至十二个元素的集合(文档中的前两个集合就是上述样例),找出其中所有的特殊和集
Be the first person to leave a comment!