fork download
  1.  
  2. t=int(input())
  3. for i in range(t):
  4. arr = []
  5. n = len(arr)
  6. arr = list(map(int, input().split()))
  7. ans = sum(arr)
  8. tc=max(arr)
  9. print('Sum of the array is ', tc)
  10.  
Success #stdin #stdout 0.02s 9072KB
stdin
3
2
4
3
3 5
4
5 2 6
stdout
Sum of the array is  2
Sum of the array is  4
Sum of the array is  3