第一题:20分,判断特征,哪些可以被计算,过了90% n = int(input()) needs = [int(i) for i in input().split()] relations = [] for i in range(n-1): relations.append([int(i) for i in input().split()]) dic = {} for relation in relations: dic[relation[0]] = relation[1:] ans = [] for j in needs: flag = False ...