文件名称:emp6

  • 所属分类:
  • 其他行业
  • 资源属性:
  • [Text]
  • 上传时间:
  • 2015-05-10
  • 文件大小:
  • 2kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 王**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

★实验任务

正如你所知道的 s_sin 是一个贪玩的不得了的小 P 孩 QAQ,你也知道他最近很喜欢玩一

个叫做太阳帝国的原罪的策略游戏去年他已经和疯狂的 AI 交战了整整一年。而现在,战斗

的序幕又要拉开了。

在某个星球上,该星球由 n*m 个方格组成,每个方格中可能为 boss,s_sin,障碍,道

路,小怪。s_sin 想要去打爆 boss,假设他可以秒杀 boss,现在他的任务只需要到达 boss

所在的位置。如果 s_sin 想要到达某个方格,但方格中有小怪,那么必须打死小怪,才能到

达这个方格。假设 s_sin 只能向上、下、左、右移动一个格子,移动一步用时 1 个时间单位,

*小怪也用 1 个时间单位。假设 s_sin 很强壮,可以*所有小怪。

试计算 s_sin 到达 boss 位置至少需要多少时间。注意:障碍时不能通过的。

★数据输入

输入第一行为两个正整数 n,m (1 < =n,m< =100), 表示该地图有 n 行 m 列。

接下来 n 行,每行 m 个字符:“.”代表道路 , “a”代表 boss , “r”代表 s_sin ,

“#”代表障碍,“x”代表小怪。-The experimental task

As you know s_sin is a fun not the small child P QAQ, you know he loves playing with a recently

A strategy game called the sins of a Solar Empire last year and he has mad at AI for a whole year. And now, the battle

Prelude to open.

On a planet, the planet by n*m squares which, as boss, s_sin, obstacle each square, road

The road, small strange. S_sin wants to hook boss, assuming he can Seckill boss, his task now only need to reach boss

Location. If s_sin wants to reach a square box, but have a little strange, so must kill mobs, to

Reach a square. Assume that s_sin only to the upper and lower, left, right movement of a lattice, move in 1 time units,

Kill mobs in 1 time units. Assume that s_sin is very strong, can kill all the mobs.

Calculate the s_sin arrives at the boss position at least how much time. Note: barrier to adoption.

Data input

The first input two positive integers n, m (=n < 1, m< =100), said the map with n M.

The next N lines, M char
(系统自动生成,下载前可以参看下载内容)

下载文件列表





emp6.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org