Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:一维数组就可以,存储父节点,然后根据输入的最后一行数据向上遍历In Reply To:一维数组就可以,存储父节点,然后根据输入的最后一行数据向上遍历 Posted by:hz02ruc at 2004-03-15 16:05:11 真是太ft了, 现在仔细的看了一下题目,原来节点的标号是从1.....N的, 我以前做的集中的实现都是认为节点的标号可以是任意的, 只要是各个节点的标号不一样就行了。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator