第一题:二叉树含有2个叶结点的非叶子结点个数统计(AC) m,n = map(int,input().split()) alls = set([i for i in range(1,m+1)]) nleaf = set() from collections import defaultdict dic = defaultdict(list) for _ in range(n): a,b,c = input().split() dic[int(a)].append(int(c)) nleaf.add(int(a)) leaf = alls-nleaf re = 0 f...