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的童鞋可能是因为数组不够大

Posted by suranxu007 at 2010-03-12 16:31:06 on Problem 2513
RE了几次还以为是输入的问题,后来发现是Trie的节点数设成500010了。
注意颜色数目是500000,但节点应该申请500000*10的空间。内存够的。

随后因为空数据WA。改了之后还是WA。
之后发现自己脑残了,原来奇数度的点有0个的时候也能排成一条“line”的,只要不把两头接起来就好。。。
这题做的不容易。。。

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