Home > Back-end >  C language for big help!!
C language for big help!!

Time:11-13


A male programmers programming ability can be represented by a positive integer x, if wear women's clothing, programming ability will increase to the point of y (y> X),

Known to have a male programmers, some wear women's clothing, some didn't wear women's clothing, their programming ability sum is b, for several ladies man programmers?

If there is a solution, then output the number of women's programmers,

If no solution, output 1,

CodePudding user response:

This math problem is

Int hahaha (int x, int y, int, int b)
{
Int AD=b - a * x;
Int aa=y - x;

Return the AD % aa==0? AD/aa: - 1;
}

CodePudding user response:

reference mark 1 floor response:
this math problem is

Int hahaha (int x, int y, int, int b)
{
Int AD=b - a * x;
Int aa=y - x;

Return the AD % aa==0? AD/aa: - 1;
}

Feeling and chicken with rabbit cage of have a little bit similar

CodePudding user response:

reference mark 1 floor response:
this math problem is

Int hahaha (int x, int y, int, int b)
{
Int AD=b - a * x;
Int aa=y - x;

Return the AD % aa==0? AD/aa: - 1;
}
if the if how to write
  • Related