a = int(input()) for i in range(a): b = int(input()) c = sum(list(map(int, input().split()))) print(c)
相关推荐