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+欧拉图判断+小心空数据!!!(附HASH函数)

Posted by donkeyinacm at 2010-03-29 10:32:59 on Problem 2513 and last updated at 2010-03-29 10:33:54
unsigned int hash(char *url)
{
	unsigned int nn=0;
	char *b=(char *)&nn;
	for(int i=0;url[i];++i)
		b[i%4]^=url[i];
	return nn%MAXN;
}

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