Human Resource Machine maximum room

Title Description

to sum up

The optimal solution is ten lines of code, how do I write can only be reduced to eleven lines of code, because the total value of the register to be returned, behind Baidu a bit, the output value if it is to back out, just minus on the basis of plus back on the line
DC thinking usually write more in line with the code of it, but the principle of this game run from base to understand the program, to better understand how to optimize the code

Sample Code

Here Insert Picture Description

Demo Code

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/XIIV13/article/details/93193956