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:用spfa加队列的怎么就wa了呢,哪位好心的大牛知道的麻烦给发个邮件In Reply To:用spfa加队列的怎么就wa了呢,哪位好心的大牛知道的麻烦给发个邮件 Posted by:acm_bone at 2010-11-20 20:10:27 如果不是循环队列的话,开小了数组不够用的,因为进队次数会大于30000次 我写的循环队列TLE了 我开到30000×500才够用,但还是TLE了。。。之前都是WA 看了DISCUSS换成栈只要500MS Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator