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 |
不用打表计算出x在第p层的第t个,初始 (x,y) 为(p,0) 按照这个顺序每个方向走p次,同时t--,直到t==0时候结束。 int D[6][2]={ {-1,1},{-1,0}, {0,-1},{1,-1}, {1,0},{0,1}}; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator