摘要: //判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ 阅读全文
posted @ 2020-07-27 00:11 BlueValentines 阅读(70) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-27 00:05 BlueValentines 阅读(57) 评论(0) 推荐(0)