OpenJudge - 14:Children's Apples
描述
There are N children. Each child has a positive number, and the numbers are different from each other. Given the sum of all numbers of children. Find a possible assignment.
输入
Two positive integers N (N <= 10) and the sum (sum <= 10000).
输出
One line contains N integers.
翻译:
这里有N个儿童。每一个儿童都代表一个正数,且每个儿童所代表的正数都不相同。给出所有孩子的数的和,找到一个可能的方案。
输入
两个正整数N和数字之和。
输出
一行,有N个数
该问题是一个数学题目,要求根据给定的儿童数量N和所有儿童数字之和,找出一个可能的、各不相同的正整数分配方案。输入包含两个正整数N和总和,输出为一行N个正整数,代表每个儿童的数字。解决方案可能涉及回溯或动态规划等算法来确保所有数字独特且总和匹配。
3143

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



