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

Re:用spfa加队列的怎么就wa了呢,哪位好心的大牛知道的麻烦给发个邮件

Posted by 2guangnian at 2011-01-29 23:07:42 on Problem 3159
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:
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