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 xiaoxiao at 2004-03-16 10:57:46 on Problem 1330
In Reply To:一维数组就可以,存储父节点,然后根据输入的最后一行数据向上遍历 Posted by:hz02ruc at 2004-03-15 16:05:11
真是太ft了,
现在仔细的看了一下题目,原来节点的标号是从1.....N的,
我以前做的集中的实现都是认为节点的标号可以是任意的,
只要是各个节点的标号不一样就行了。

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