//穷举
int m=0;
for (int i = 1; i <=200/15; i++)
{
for (int j = 1; j <=200/3 ; j++)
{
for (int k = 1; k < 200/2; k++)
{
if (15*i+3*j+2*k==200)
{
Console.WriteLine(i+"副拍子," + j + "个球,"+k+"瓶水;");
m++;
}
}
}
}
Console.WriteLine("总共有"+m+"种可能");
Console.ReadKey();