Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:题目意思有点不理解!!求助!!

Posted by Ghost_lzy at 2016-08-16 17:22:41 on Problem 3009
In Reply To:题目意思有点不理解!!求助!! Posted by:FengRenjun at 2013-10-24 13:06:46
> 6 1
> 1 1 2 1 1 3
> 6 1
> 1 0 2 1 1 3
> 这两个case为什么一个可以一个不可以呢?
> 
> 不能一直向右扔嘛?
> 
> 第二个为什么要4次?
题目大意就是给出一个w*h的地图,其中0代表空地,1代表障碍物,2代表起点,3代表终点,每次行动可以走多个方格,每次只能向附近一格不是障碍物的方向行动,直到碰到障碍物才停下来,此时障碍物也会随之消失,如果行动时超出方格的界限或行动次数超过了10则会game over .如果行动时经过3则会win,记下此时行动次数(不是行动的方格数),求最小的行动次数(http://www.cnblogs.com/ACShiryu/ )

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator