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 yygy at 2012-11-22 20:53:07 on Problem 1835
我的做法是当前人的方向状态用两个变量来表示,
td,d
td,表示头部指的方向。
d表示正前方的方向。
这样的话,前进,后退,向上,向下,都好处理。
左转右转的话,要枚举判断一下。

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