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 |
Re:TLE 哪位好心人帮忙看一下瓶颈在那里,该怎么改进?In Reply To:TLE 哪位好心人帮忙看一下瓶颈在那里,该怎么改进? Posted by:ykt at 2005-08-30 23:59:37 终于AC了,把hash function 改了一下 int evalKey(char *p){ int key=0; while(*p){ key=(*p++)+PRIME_NUM*key; key=key%MAX_WORD_NUM; } return key; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator