Is It A Tree? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22403 Accepted Submission(s): 5088 Problem Description A tree is a well-known data structure that is either empty (null, void, no…
Is It A Tree? Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 28838 Accepted: 9843 -> Link poj <- -> Link hdu<- -> Link NYoj <- 这三个题题目都是一样的,我先做的NYOJ上的,以-1.-1结尾,然后跑到HDu上交一遍跪了,改成同时小于0就A了, 又到POJ上交一遍又跪了,改成-1.-1结尾又A了: 题意…