#include<stdio.h>
int main(int argc, char const *argv[])
{
int num = 0;
for (int i = 0; i <= 33; i++)
{
for (int j = 0; j < 50; j++)
{
int x = 100 - i - j;
if(3*i+2*j+x/3 == 100 && x%3 == 0)
{
printf("🐓有%d只,母鸡有%d只,小鸡有%d只\n",i,j,x);
num++;
}
}
}
printf("共有%d种买法\n",num);
return 0;
}