hdu1087 Super Jumping! Jumping! Jumping!

这是一道关于超级跳跃棋盘游戏的问题,玩家从起点开始,必须跳跃到终点,每次跳跃都必须跳到数值更大的棋子上。目标是找到能获得最大得分的跳跃路径。输入包含多组数据,每组数据表示棋盘上的棋子数量及其数值,最后一组数据为0。输出每组数据的最大得分。题目提示使用动态规划求解,注意不能返回起点。
摘要由CSDN通过智能技术生成

Problem Description

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now.



The game can be played by two or more than two players. It consists of a chessboard(棋盘)and some chessmen(棋子), and all chessmen are marked by a positive integer or “start” or “end”. The player starts from start-point and must jumps into end-point finally. In the course of jumping, the player will visit the chessmen in the path, but everyone must jumps from one c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值