SaveText.Ru

Без имени
  1. tests_count = int(input())
  2. summs = list()
  3.  
  4. for i in range(tests_count):
  5.     nums_count = int(input())
  6.     summ = 0
  7.    
  8.     for j in range(nums_count):
  9.         summ += int(input())
  10.  
  11.     summs.append(summ)
  12.  
  13. for summ in summs:
  14.     print(summ)

Share with your friends:

Print