#include<stdio.h>
void buy();
int main()
{
buy();
return 0;
}
void buy()
{
int a,b,c;
for(a=1;a<=100;a++)
{
for(b=1;b<=100;b++)
{
c=100-(a+b);
if(a*5+b*3+c/3==100&&c%3==0)
printf("公鸡数为:%d只\t母鸡数为:%d只\t小鸡数为:%d只\n",a,b,c);
}
}
}
08-04
08-04
08-04
08-04
08-04
08-04