Test instructions: Give an example to say, tell you 4 numbers, 8,6,4,2 four numbers, make up a four-digit number, if two numbers are 1111,2222, 2222 will 1111 kill, is composed of four digits can not each bit less than or equal to a number, and then let you find the maximum can survive the number.
Analysis: The field on the time oneself has been pushing the formula, find the law, thought is four numbers increment and decrement the law of alternating, unexpectedly is and absolute force is certain law, namely NUM/2, and certainly that is DP;
PS: I am actually very afraid of DP, but for teammates, at least to the DP to get started! Feel the law after the problem is quite simple!
Originally I have a fixed view, that is greedy can do the problem, DP can do, but DP can do, greed may not do, also feel DP, greedy, find the law, three contact very close, sometimes can not find the law or greedy not go to find DP.
HDU5000 (DP + rule) not completed