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 raoxiaojia at 2009-10-21 19:13:02 on Problem 1820 and last updated at 2009-10-21 19:13:52
        1            2
       / \          / \
      2   3        4   1
     /   /              \
    4   5                3
                          \
                           5
     Tree 1         Tree 2

Tree 1 和 Tree 2 一眼看上去好像完全不一样,但如果将 Tree 2 以1号节点为根建树,就会
发现其实这两棵树是完全一致的!不知道这种情况算不算?题目里好像没有讲。难道传说中的
2000多提交,0接受就是这么出来的?

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