using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 买鸡
{
class Program
{
static void Main(string[] args)
{
int add = 0;
for (int i = 0; i <= 20; i++)
{
for (int j = 0; j <= 33; j++)
{
for (int k = 0; k <= 100; k++)
{
if ((i + j + k == 100) && (15 * i + 9 * j + k == 300))
{
Console.WriteLine("母鸡:" + i);
Console.WriteLine("公鸡:" + j);
Console.WriteLine("小鸡:" + k);
add++;
}
}
}
}
Console.WriteLine("有" + add + "种");
Console.ReadKey();
}
}