#include <stdio.h>
//直接依次累加得出
int main()
{int a, b, c;for (int a = 0; a <34 ; a++) //大马{for (int b = 0; b < 51; b++) //中马{for (int c = 0; c < 201; c++) ///小马{if (a + b + c == 100 && 3 * a + 2 * b + 0.5 * c == 100) //满足条件时{printf("大马:%d 小马:%d 中马:%d\n",a,b,c);} }}}
}