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 isInt 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: