1百钱百鸡
#include <iostream>
using namespace std;
int main()
{
int cock,hen,chicken;
for(cock=0;cock<=20;cock++){
for(hen=0;hen<=100-5*cock;hen++){
chicken=(100-5*cock-3*hen)*3;
if(chicken+hen+cock==100)
{cout<<"小鸡"<<chicken<<"公鸡"<<cock<<"母鸡"<<hen<<endl;
}
}
}
return 0;
}

浙公网安备 33010602011771号