描述
Find a subset of N numbers. The sum of the numbers in the subset is exactly equal to T.
输入
First line: two positive integers N (N <= 100) and T (T <= 1000).
Second line: N positive integers (<= 1000).
输出
One line contains several numbers.
翻译:
找到一个N个数的子集,这个子集的和为T
输入:
第一行:两个正整数N和T。
第二行:N个正整数。
输出:一行,有若干数。
该问题描述了一个算法挑战,需要找出一个包含N个正整数的子集,其和恰好等于给定的目标值T。输入包括两行,第一行包含正整数N和T,第二行给出N个正整数。输出为一行,列出所有符合条件的子集元素,以空格分隔。
2554

被折叠的 条评论
为什么被折叠?



