比较简单吧, 还以为平均AK, 想了很久问答题 1,二叉树, 求节点的两个子节点为叶子节点 m, n = list(map(int, input().split())) nodes = [None]*(m+1) class Node: def __init__(self, id): self.left = None self.right = None self.id = id for x in range(n): line = input().split() id = int(line[0]) dir...