| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
注意的几点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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator