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

汗,做了这么久!公布这个题目对于新手注意的地方

Posted by R2D2 at 2008-02-29 13:27:20 on Problem 3140 and last updated at 2008-02-29 14:10:15
这个题目做得很郁闷,TLE+WA了不少次数,公布自己的错误(通过看discuss整理)

注意数据大小不能为int,这样会wa

建树时得到的邻接链表在用完后不要一个一个去delete,这样会TLE

对于N=1的情况,可以认为还有一组0个

据说这个题目是树形DP,我用DFS水过去的~~

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