시도 횟수: 1회
해결한 시간: 00:02
<aside> 💡
$[l, r]$구간을 크게 잡아봤자 평균이 커지지 않는다. 최대 평균은 구간의 크기가 $1$일때 나온다.
</aside>
#include <bits/stdc++.h>
#define FASTIO ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
using namespace std;
typedef long long ll;
int n;
int a[11];
void solve()
{
int ans = 0;
cin >> n;
for(int i = 0; i<n; i++){
cin >> a[i];
ans = max(ans, a[i]);
}
cout << ans <<"\\n";
}
signed main()
{
FASTIO;
int _tc; cin >> _tc;
while (_tc--) solve();
return 0;
}