#Jumping

Jumping Haybales (dp)

JumpingHaybales  题意:从左上角到右下角,‘#’不能落脚,每次可以向下或者向右跳小于等于k的距离,问最小需要多少步到达右下角分析:设dp[i][j]表示到达点坐标点(i),(j)所需的最少步数,状态见代码AC_Code:1#include<bits/stdc++.h>2u...
代码星球 ·2020-12-28

hdu 1087 Super Jumping! Jumping! Jumping!(动态规划DP)

SuperJumping!Jumping!Jumping!TimeLimit:2000/1000MS(Java/Others)   MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):47017   ...