#include #include #include #include #include #include #include #include #include #include #include #include #define read freopen("in.txt","r",stdin) #define maxlongint 2147483647 typedef long long LL; typedef unsigned long long ULL; #define fori for(i=1;i<=n;i++) #define forj for(j=1;j<=m;j++) #define fork for(k=1;k<=n;k++) #define FOR(i,n) for(i=1;i<=n;i++) #define REP(i,a,b) for(i=a;i<=b;i++) #define DREP(i,a,b) for(i=a;i>=b;i--) #define DOWN(i,n) for(i=n;i>=1;i--) #define enter cout<>T; while(T--) { cin>>n; m=0; fori {cin>>x; m=max(m,x);} cout<