Problem 2672 --7_B : Binary Trees

2672: 7_B : Binary Trees

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $4$ 正确数量 $2$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL
9
0 1 4
1 2 3
2 -1 -1
3 -1 -1
4 5 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1
node 0: parent = -1, sibling = -1, degree = 2, depth = 0, height = 3, root
node 1: parent = 0, sibling = 4, degree = 2, depth = 1, height = 1, internal node
node 2: parent = 1, sibling = 3, degree = 0, depth = 2, height = 0, leaf
node 3: parent = 1, sibling = 2, degree = 0, depth = 2, height = 0, leaf
node 4: parent = 0, sibling = 1, degree = 2, depth = 1, height = 2, internal node
node 5: parent = 4, sibling = 8, degree = 2, depth = 2, height = 1, internal node
node 6: parent = 5, sibling = 7, degree = 0, depth = 3, height = 0, leaf
node 7: parent = 5, sibling = 6, degree = 0, depth = 3, height = 0, leaf
node 8: parent = 4, sibling = 5, degree = 0, depth = 2, height = 0, leaf

推荐代码 查看2672 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$6 $ms] AOJ管家_赵老师 1163828 2025-01-14 19:28:46
内存最少[$1320 $KB] AOJ管家_赵老师 1163828 2025-01-14 19:28:46
第一AC 忆一九 808195 2022-01-31 13:51:51
第一挑战 囧囧JOJO 756674 2021-06-13 23:27:59

赛题来源 会津大学《挑战数据结构与算法》 挑战数据结构与算法

登录后提交代码

题面与样例可直接查看,登录后即可在线提交和评测。

前往登录