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

样例解释:注意当旁边有障碍物相邻时不能直接抛向障碍物

Posted by 14020130063 at 2015-12-29 08:51:47 on Problem 3009
第三组样例:
6 1
1 1 2 1 1 3
输出结果是-1。
以S表示小球当前位置,一开始窝以为可以这样:
1 1 S 1 1 3  -->  1 1 S 0 1 3  --> 1 1 0 S 0 3  --> 1 1 0 0 0 S (3步)
还迷惑了一会。。
但实际上是不能直接把球往相邻的障碍物上“按”的。。。
所以说。。
Hope you get something from the message...^_^

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