Problem Description
Loading...
Problem Analysis
A Dynamic Programming problem
I forced myself not to look at any editorial and just pushed through
and I guess I solved it
The idea is that for each point
you record the maximum value obtainable by ending at that point
then you just need to find the maximum among the values of all points
…I suppose this is what they call DP
Thinking about it, I’ve done a fair number of DP problems by now
I basically understand the idea behind DP
but I’m still not fluent, so more practice is necessary
cpp
| |
Problem address: 【HDU】[1087]Super Jumping! Jumping! Jumping!