mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
20 lines
435 B
C++
20 lines
435 B
C++
|
#include <stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int n, m;
|
||
|
double a, max = -10.0;
|
||
|
while(scanf("%d", &n) != EOF){
|
||
|
for(int i = 0; i < n; i++){
|
||
|
scanf("%d", &m);
|
||
|
for(int j = 0; j < m; j++){
|
||
|
scanf("%lf", &a);
|
||
|
if(max < a) max = a;
|
||
|
else ;
|
||
|
}
|
||
|
printf("%.2lf\n", max);
|
||
|
max = -10.0;
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|