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 |
搞清楚一个字典序就行了,其余的很简单。这一题的字典序:就是先按列排序,较小的在前。然后按行排序,也是较小的在前。 我的排序是这样的: int diri[8]={-1,1,-2,2,-2,2,-1,1}; int dirj[8]={-2,-2,-1,-1,1,1,2,2}; Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator