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

对没AC的同学一点提示

Posted by PlayerZ at 2008-08-07 08:58:43 on Problem 1011
如果一些很bt的数据你的程序能瞬间地得出正确的结果,但又WA
比如这个:64
33 36 7 45 6 14 14 14 28 39 35 36 5 33 21 32 29 37 31 3 2 19 40 34 25 1 33 49 20 14 25 36 45 37 47 28 39 8 36 44 8 48 41 1 13 18 9 10 34 42 41 39 42 20 23 6 40 28 49 16 38 33 15 7
往往是因为你的搜索不完备,导致对某些数据可以得出正确的结果,但是无法通过。
重点检查一下递归的进入和退出的处理工作,比如对访问标记的操作。是不是有些地方有遗漏。
特别是递归中途return的情况

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