标签:long span ash pre hash 求助 size get return
某同学的hash姿势:
long long get_hash1(long long k)
{
long long h=0;
while(k)
{
h=(h*33+k)%13831;
k/=10;
}
return h
}
long long get_hash2(long long q) { long long h=0; while(q) { h=(h*53+q)%20047; q/=10; } return h }
然而,它错了
求助大佬*3
标签:long span ash pre hash 求助 size get return
原文地址:http://www.cnblogs.com/TheRoadToTheGold/p/6370585.html