background image

#include <stdio.h>
int main(int argc, char *argv[])
{

int gj,mj,xj;
for(gj=0;gj<=20;gj++)
{

for(mj=0;mj<=33;mj++)
{

xj=100-gj-mj;
if(xj%3==0 && (gj*5+mj*3+xj/3)==100)
printf("gj:%d,mj:%d,xj:%d\n",gj,mj,xj);

}

}
return 0;

}