HDU/2071/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

22 lines
390 B
C

#include <stdio.h>
int main(void){
int numbers,count,c_count,i;
double hgt[105];
scanf("%d",&numbers);
for(count = 0; count < numbers; count++){
scanf("%d",&c_count);
for(i = 0; i < c_count; i++){
scanf("%lf",&hgt[i]);
}
int if_ch = 1;
double max = hgt[0];
for(i = 0; i < c_count; i++){
if(hgt[i] > max) max = hgt[i];
}
printf("%.2lf\n",max);
}
return 0;
}