码迷,mamicode.com
首页 > 其他好文 > 详细

Gym - 101617D_Jumping Haybales

时间:2018-09-29 00:06:29      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:一个   题意   com   图片   inf   技术分享   tput   out   inpu   

技术分享图片

Sample Input

4 2
.###
#...
.#..
#.#.
3 1
.#.
.#.
.#.

Sample Output

4
-1

题意:给一个n*n的图,每次最多能跳k个格子,只能向南(下)或东(右)跳,不能落在‘#’上。

Gym - 101617D_Jumping Haybales

标签:一个   题意   com   图片   inf   技术分享   tput   out   inpu   

原文地址:https://www.cnblogs.com/luoxiaoyi/p/9721445.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!