#include<iostream>
#include<iomanip>
#include<vector>
using namespace std;
int main()
{
int t;
while (cin >> t)
{
int n;
while (t--&&cin >> n)
{
double num;
vector<double> v;
while (n--&&cin >> num)
{
v.push_back(num);
}
double max = v[0];
for (auto c:v)
if (c > max)
max = c;
cout << fixed << setprecision(2) << max << endl;
}
}
return 0;
}
2071 Max Num
最新推荐文章于 2016-08-26 14:29:17 发布