fork download
  1. T = int(input())
  2. while T:
  3. T-= 1
  4. _ = int(input())
  5. print(max(map(int, input().split())))
Success #stdin #stdout 0.13s 14140KB
stdin
1
5
4 7 6 3 1
stdout
7