阅读背景:

【有上下界最大费用可行流】HDU-4862 Jump

来源:互联网 
Problem Description There are n*m grids, each grid contains a number, ranging from 0-9. Your initial energy is zero. You can play up to K times the game, every time you can choose any one of the grid as a starting point (but not traveled before) then you can choose a grid on the right or below the current grid to jump, but it has not traveled before. Every time you can jump as many times as you want, as long as you do not violate rules. If you are from (x1, y1) to (x2, y2), then you consume |x1-x2|+|y1-y2|-1 energies. Energy can be negative. There are n*m grids, each grid


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: