摘要: 4337: BJOI2015 树的同构 Description 树是一种很常见的数据结构。 我们把N个点,N-1条边的连通无向图称为树。 若将某个点作为根,从根开始遍历,则其它的点都有一个前驱,这个树就成为有根树。 对于两个树T1和T2,如果能够把树T1的所有点重新标号,使得树T1和树T2完全相 同 阅读全文
posted @ 2018-04-19 21:59 咸鱼lzh 阅读(190) 评论(0) 推荐(0) 编辑
摘要: B. Destruction of a Tree time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Destruction o 阅读全文
posted @ 2018-04-19 16:38 咸鱼lzh 阅读(275) 评论(0) 推荐(0) 编辑