| ||||||||||
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 |
请教一下,这个hash可行么?inline int hash(loc x[]) { int t=(x[1].x-1)+((x[1].y-1)<<4); if (n==1) return t; t|=((x[2].x-1)+(x[2].y-1)<<4)<<8; if (n==2) return t; t|=((x[3].x-1)+(x[3].y-1)<<4)<<16; return t; } x[]是鬼的位置表 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator