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

请教一下,这个hash可行么?

Posted by linusc at 2010-04-04 20:47:33 on Problem 3523
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:
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