![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/f603918fa0ec08fad4eb80015cee3d6d54fbdaa9?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
#include <
stdio.h>
int main()
{
int yiyuan;
int eryuan;
int wuyuan;
int count=0;
for(yiyuan=1;yiyuan<=100;yiyuan++)
{
for(eryuan=1;eryuan<=100;eryuan++)
{
for(wuyuan=1;wuyuan<=100;wuyuan++)
{
if(yiyuan+eryuan*2+wuyuan*5==100)
{
count++;
}
}
}
}
printf("共有%d种组合",count);
return 0;
}