public class zuoye {
public static void main(String[] args) {
// TODO 自动生成的方法存根
for (int g = 0; g <= 100; g++)
{
for (int m = 0; m < 100; m++)
{
for(int x = 0; x < 100; x++)
{
if (g+m+x==100 && 15*g+9*m+x==300)
{
System.out.println("公鸡="+g+"母鸡="+m+"小鸡="+x);
}
}
}
}
for (int a = 1; a <= 9; a++)
{
for (int b = 0; b <= 9; b++)
{
for(int c = 0; c <= 9; c++)
{
if (a*a*a+b*b*b+c*c*c==100*a+10*b+c)
{
System.out.println(100*a+10*b+c);
}
}
}
}
for (int d = 1; d <=100; d++)
{
for (int z = 1; z <= 100; z++)
{
for(int xm = 1; xm <= 100; xm++)
{
if (d+z+xm==100 && 6*d+4*z+xm==200)
{
System.out.println("大马="+d+"中马="+z+"小马="+xm);
}
}
}
}
}
}