#include <stdio.h>
int main()
{
int i, j, k;
for (i = 1; i <= 100; i++)
for (j = 1; j <= 100; j++)
for (k = 0; k <= 100; k++)
{
if (5 * i + 3 * j + k / 3 == 100 && k % 3 == 0 && i + j + k == 100)
{
printf("公鸡=%d,母鸡=%d,小鸡=%d\n", i, j, k);
}
}
return 0;
}
11-17
3087
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-02
04-10
178
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)