伪代码描述:for(int x=0;x<=100;x++){ for(int y=0;y<=100-x;j++) z=100-x-y; if(z%3==0){ if(5*3+3*y+z/3==100){ then(x,y,z) is solution; } } }