开始使用暴力破解法,但运行超时,通过为百分之五十。代码如下:if __name__ == "__main__": n = int(input()) like = list(map(int,input().split())) q = int(input()) check = [] count = [0 for i in range(q)] for i in range(q): check.append(list(map(int,input().split()))) for i in range(n): #暴力查询 for j in range(q): ...