function findChickens() {
const solutions = [];
for (let x = 0; x <= 20; x++) {
for (let y = 0; y <= 33; y++) {
const z = 100 - x - y;
if (5 * x + 3 * y + z / 3 === 100 && z % 3 === 0) {
solutions.push([x, y, z]);
}
}
}
return solutions;
}
// 获取所有可能的解
const allSolutions = findChickens();
// 输出结果
console.log("翁 母 雏");
for (const solution of allSolutions) {
console.log(solution.join(" "));
}