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 GreatAccepted at 2010-02-08 15:12:48 on Problem 2488
1.按照字典序搜索
即有:
int dir[8][2]={
	{-2,-1},{-2,1},
	{-1,-2},{-1,2},
	{1,-2},{1,2},
	{2,-1},{2,1}
	};
2.可直接从(1,1)搜索,不成功,则impossible(对于本题可以这样,理论上没做分析呵呵~)

3.看到其他discussion,说要放大数组,不过我一开始就够大了,没考虑

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