#include"stdio.h" main() { int x,y,z; for(x=1;x<=19;x++) for(y=1;y<=31;y++) { z=100-x-y; if(5*x+3*y+z/3==100&&z%3==0) printf("\n公鸡%d\n母鸡%d\n小鸡%d\n",x,y,z); } }