Home > Back-end >  For bosses to help think it over
For bosses to help think it over

Time:10-29


The great spirit is good, the problem is my program is to use the exhaustive method, bosses can't help to think about the problem in addition to the exhaustive method is there any other method can out? Thank you all for the great god

CodePudding user response:

Need not exhaustive
XYZ + YZZ
So for N Z single-digit half
So can deduce the Y
Which is Y, therefore can deduce the X

CodePudding user response:

"So Z for N half single-digit" don't understand... Mean Z is half N last? Not necessarily, ah, ah Z may be greater than 5

CodePudding user response:

refer to the second floor of seed abut ah response:
"so Z for N half single-digit" don't understand... Mean Z is half N last? Not necessarily, ah, ah Z may be greater than 5

Yes, this topic is likely to have more than one answer,


CodePudding user response:

Xyz + zyz=n
Z=single digits of n/2 or single digits of n/2 + 5 and n (the ten digits a borrow)
On the ten digits of judgment is more complex, step by step can be pushed to the situations, but not worth

Or write code, anyway the x, y is the range of 1 to 8, z can be according to the previous either single digits of n is divided by 2 or more five
The dual loop written
  • Related