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

WA N次 TLE N 次 终于AC了~~~

Posted by Scor at 2008-02-20 01:29:03 on Problem 1175
做这题快WA哭了,代码又长,本来代码子函数就没好好写,调试得很痛苦,调好后SAMPEL能过就不停WA,继续调了几个小时,放弃...
后来做其他BFS发现原来是我的BFS中的while结束条件没有减1.改了之后就不停TLE.这题数据量不大,不至于这样啊!...后来发现数组开的太大了,memset太多就TLE了....ft

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