1. 首页
  2. 课程学习
  3. C++/C
  4. sum it up !

sum it up !

上传者: 2020-07-22 07:44:13上传 TXT文件 2.76KB 热度 25次
Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], then there are four different sums that equal 4: 4,3+1,2+2, and 2+1+1.(A number can be used within a sum as many times as
下载地址
用户评论