T = int(input())while T: T-= 1 _ = int(input()) print(max(map(int, input().split())))
1 5 4 7 6 3 1
7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!