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 |
后来人注意若直接使用STL的优先队列+STRING会超时,我将STRING换成C中的字符串才可以。搜的时候若某个状态已经搜索过,要看此次搜索的花费是否比已有的值小,是则入队。如果全部入队,然后在每次弹出队头元素时再进行判断,有可能会超内存。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator