class Chicken{
public static void Chicken(String[] args){
int ch; //小鸡
int b; //母鸡
int c; //公鸡
for(ch=0;ch<100;ch++){
for(b=0;b<33;b++){
for(c=0;c<20;c++){
if((ch+b+c==100)&&(ch/3+b*3+c*5==100)){
System.out.println("小鸡:"+ch +" 母鸡:"+b +" 公鸡:"+c);
}
}
}
}
}
}
public static void Chicken(String[] args){
int ch; //小鸡
int b; //母鸡
int c; //公鸡
for(ch=0;ch<100;ch++){
for(b=0;b<33;b++){
for(c=0;c<20;c++){
if((ch+b+c==100)&&(ch/3+b*3+c*5==100)){
System.out.println("小鸡:"+ch +" 母鸡:"+b +" 公鸡:"+c);
}
}
}
}
}
}