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