• ## Explorer

千次阅读 2007-08-28 03:07:00
Explorer作者：AckarlixInput file: explorer.inIn a faraway land, there lives an explorer who devotes himself to exploration. His dream is to find priceless treasures one day, but the unfort

Explorer

作者：Ackarlix

Input file: explorer.in
In a faraway land, there lives an explorer who devotes himself to exploration.  His dream is to find priceless treasures one day, but the unfortunate man has not ever found a small piece of diamond throughout most of his life.  But now, he realizes that maybe his dream would come true recently, because he has got a map on which it is said to have recorded the place of some invaluable treasures.  The treasures’ history could be traced back to remote antiquity, and the treasures were so mysterious that no one could tell what it is definitely.  The explorer was excited at first, but later, facing the precious map, he got disheartened.  Although the map is detailed, he is not sure whether he is able to reach the destination and finally get back to the starting point.  So he asks you to write a program to give him an answer.  If you tell him that he could reach the destination and return the jumping-off point, he will start his exploration.  But if the answer is that he couldn’t get there and then go back, the plan of the exploration will be canceled.
The map which the explorer shows is very large, and it is divided into partitions of 20 km´20 km.  The explorer also knows that he happen to cover 20 km a day, that is, he could walk from one partition to the left, right, upper or down adjoining one.  For some reasons, his route must be horizontal or vertical, that means he couldn’t go to the upper-left, upper-right, down-left, or down-right partition forthrightly.  The whole map consists of the following terrains: desert, oasis, forest, city, road, and marsh.  Obviously, the writer of the map is kindhearted, in the map, he even tell how much water would be cost in the every kind of terrain.  When you walk on road, you will have to consume water of 2 kg a day.  When you pace in forest, the consumption will be 1 kg, because the plants will shield you from the sunshine.  And when you go through oasis, it is fortunate that you needn’t use any water you carry about, since you could find enough water to satisfy your thirsty.  If you travel in desert, the amount of the water will be rise to 4 kg.  For an explorer, it is quite lucky to arrive at a city, because the hospitable inhabitants will supply him as much water as he may carry about.  But if you happen to approach a marsh, you should be careful, because it will bring the angel of death to anyone who dares to make an exploration in it.  The explorer is unwilling to take such a risk, so a marsh means an unreachable place to him.  During his journey, if the amount of the water he holds decrease to 0, he will be unable to go on his journey.
Before showing you the map, the explorer had made some modifications on it.  He marked the point of departure as S, the treasure-storing place as T, deserts as D, oases as O, forests as F, cities as C, roads as R, and marshes as M. So the map will become a sketch as follows:
RRRRRRRRRRRRRRR
RRSRRRFFFFFFFFF
DDDDDDDDFFFFFFF
DDDDODDDFFFFFFF
DDDDDDCDFFFFFFF
DTDDOOOOFFFFFFF
RRRRRRRRRRRRRMM
As far as the terrains of the starting point and the treasure-storing point are concerned, they may be regarded the same as that of the road.  That is, while going to the treasure-storing place, the explorer will consume 2 kg water at the starting point; while going back, the explorer will consume the same amount of water at the treasure-storing place.  You may assume that to unearth the treasure will not take much time, so that it won’t consume any additional water.
The explorer will tell you the limitation of the amount of water he can carry about.  As it should be, he will carry as much water as possible.  So you are required to give him the answer whether he may start his exploration.  If the plan isn’t canceled, you should also tell him the maximum amount of water he will hold when he come back to the starting point.  He has enough time to perform the exploration, so that what he is interested in is the amount of the remainder water instead of the time to be spent.  However, he is as cunning as a fox, in order not to let you know the exact place, he will show you many maps, so you should make decisions one after another.
Note: When the amount of water the explorer holds decrease to 0, if the explorer stays in city, he may go on his adventure, because he will be supplied enough water;  if he is in an oasis, he may go to the adjoining oases (if there are oases adjoin to it), because walking in oases doesn’t consume any water he holds;  but if he is walking in other terrains, he must give up his adventure.
Input
The input file describes several test cases, each of which describes a treasure map.  The first line of input for each test case contains a non-negative single integer w, the amount of water that the explorer may carry about.  The next line contains a pair of integers m, n (0 £ m, n £ 1000), giving the dimensions of the treasure map in 20 km partitions.  Immediately following are m lines of n characters, giving the description of terrains on the map that the explorer shows you, including a character “S”, the starting point, and a character “T”, the destination.
The input is terminated by a description starting with w = 0.  This description should not be processed.
Output
For each treasure map, display the map number (starting with 1).  Then, if the explorer is able to reach the destination and safely come back, display the answer “Yes”, following the maximum amount of water he will hold.  If the plan is canceled, display the answer “No”.  There should be a blank line between treasure maps.

Sample Input
100
15 7
RRRRRRRRRRRRRRR
RRSRRRFFFFFFFFF
DDDDDDDDFFFFFFF
DDDDODDDFFFFFFF
DDDDDDCDFFFFFFF
DTDDOOOOFFFFFFF
RRRRRRRRRRRRRMM
5
15 7
RRRRRRRRRRRRRRR
RRSRRRFFFFFFFFF
DDDDDDDDFFFFFFF
DDDDODDDFFFFFFF
DDDDDDCDFFFFFFF
DTDDOOOOFFFFFFF
RRRRRRRRRRRRRMM
0
Output for the Sample Input
Map #1
Yes
The maximum amount of the remainder water is 88

Map #2
No

展开全文
• 第一步,Android Studio File Explorer 不显示内容,参考:http://blog.csdn.net/u013553529/article/details/54292956 第二步,内容显示了,但仍然不能查看里面内容,做法如下: adb shell su root chmod 777 data cd data...
第一步,Android Studio File Explorer 不显示内容,参考:http://blog.csdn.net/u013553529/article/details/54292956

第二步,内容显示了,但仍然不能查看里面内容,做法如下:

su root

chmod 777 data

cd data/data

chmod 777 *

然后在逐个修改权限即可

更新(2017年3月10日)

1.Android studio 2.3更新后修复了File Explorer 不显示目录树的问题

2.目录树显示了,内容仍无法查看.

a.可先使用chmod指令赋权,然后用cat 指令查看文件内容(cat 文件名).


展开全文
• 1.在项目文件比较多的情况下，为了方便查看整体和及时定位到项目文件，通常会同时使用Project Explorer视图与Package Explorer视图。 2.打开Project Explorer视图与Package Explorer视图。 a.打开Project ...
1.在项目文件比较多的情况下，为了方便查看整体和及时定位到项目文件，通常会同时使用Project Explorer视图与Package Explorer视图。

2.打开Project Explorer视图与Package Explorer视图。
a.打开Project Explorer视图：window->show view->Project
Explorer other->java->Package Explorer。
b.打开Package
Explorer视图:window->show view->other->java->Package Explorer。


展开全文
目录

The LDAP Explorer

The LDAP Explorer


展开全文
• 在eclipse中使用Project Explorer视图与Package Explorer视图 在项目文件比较多的情况下，为了方便查看整体和及时定位到项目文件，通常会同时使用Project Explorer视图与Package Explorer视图。 打开Project ...
• 1.Package Explorer 下的目录形式 Project Explorer下的目录形式 我一般使用的是第一个，下面直接就是src,不用再找，比较方便
• .bat脚本 @echo off taskkill /im explorer.exe /f ping -n 2 127.0.0.1 > nul start c:\windows\explorer.exe
• 创建了maven工程，发现引用的包都是散放，看着不舒服，原来是package explorer与project explorer视图的区别 转载于:https://www.cnblogs.com/ellejing/p/5457617.html
• ## CMS Explorer

千次阅读 2010-09-16 21:09:00
CMS Explorer
• 项目开发过程中，Eclipse中Project Explorer和Package Explorer字体太小，看着费劲，那就修改吧。网上的有许多改法，都没成功，最后经过自己的研究，修改成功，先分享如下： 第一步、找e4_default_win7.css或e4-...
• ## Log Explorer4.2

千次下载 热门讨论 2008-05-26 12:58:06
Log Explorer4.2 demo,在4.1基础上增加了对64位OS的支持
• ## HDF Explorer绿色版

热门讨论 2014-09-04 11:00:10
大概是绿色版吧，反正我直接打开就能用了。 因为在csdn上找了两个hdf explorer的安装包都安不上，所以把这个资源上传上来，方便大家使用，就不要分了。
• ## OpenExplorer插件

千次阅读 2018-07-13 21:43:48
• 但是，您可能已经知道，Internet Explorer 8（IE8）及其早期版本无法识别此新功能。 因此，当您将CSS3 Border Radius应用于元素时，它仍显示为带有尖头的方框。 您可能会在Internet上找到许多不同的建议，建议您...
• Explorer注册表键值归纳
• Explorer.exe是什么 在Windows操作系统中，Explorer.exe是桌面进程的意思，它负责显示用户桌面信息，如果用户将它结束掉就看不到桌面上的任何图标了，相当于Windows操作系统中的人机交互界面，其重要性不言而喻。...
• ## Log Explorer 4.1

千次下载 热门讨论 2008-09-11 11:20:05
可用于SQLServer2005的日志恢复工具
• 你说的三种视图模式基本上差不多，只不过视角不同而已。就像数据库中的视图一样。navigator：source以及resource是以文件夹为单位...project explorer：这个视图模式很怎么用过，可能是根据eclispse提供的工程类型，
• ## Activiti Explorer安装

千次阅读 2017-01-02 15:45:33
Activiti Explorer安装 分类： activiti 2014-05-06 19:11 349人阅读 评论(0) 收藏 举报 一、Activiti Explorer介绍 流程引擎的用户控制台。使用它来启动新流程，分配任务，查看并认领任务，等等。这个工具...
• With only the java developer tools (JDT) installed the Project Explorer nearly looks and behaves for java projects as the Package Explorer (including refactoring and other source code operations in ...
• ## wince5.0 explorer.exe

热门讨论 2012-06-14 21:27:55
wince5.0 explorer.exe
• 安装Hyperledger Explorer 1、下载源代码（版本必须与Fabric的版本对应） git clone https://github.com/hyperledger/blockchain-explorer.git 2、修改配置文件 docker-compose.yaml version: '2.1' volumes: ...
• MyEclipse 中的Project Explorer和 Package Explorer 是两种不同的视图，显示工程的内容不同。Project Explorer 和 Console： Package Explorer： ...
• ## wince桌面工具Explorer

热门讨论 2011-03-08 01:03:47
只有通过专业的工具才能进入，目前修改GPS的UI，部份用户也是通过此种方法实现的，当然还有使其WIFI基础上，实现无线上网功能，这些都是大侠们进入WINCE桌面折腾的，下面的这个WINCE桌面工具explorer.exe方法：...
• package explorer：包资源管理器 package explorer：项目资源管理器 首先弄明白视图是啥意思？视图的英文是perspective，打个比方说明意思：你站在一个正方体的前面，你站的角度不同导致你看正方体的“视角”不同...
• Process Explorer is a freewarecomputer program for Microsoft Windows created by Sysinternals, which was acquired by Microsoft Corporation.   Process Explorer is a system monitoring ...
• ## Weka Explorer

千次阅读 2012-02-04 17:22:18
refer to 《Data Mining,Practical Machine Learning ...1. weka explorer 界面如下: 功能简介： 1） preprocess: 选择数据集，并以多种方式进行修改 2） 分类： train learning schemes that perform c

...