MAX NUM

#include<stdio.h>
#include<algorithm>
using namespace std;
int main( )
{
  int t,i,N;
  double A[10000];
  scanf("%d",&N);
  while(N--)
  {
   scanf("%d",&t);
   for(i=0;i<t;i++)
   scanf("%lf",&A[i]);
   sort(A,A+t);
   printf("%.2lf\n",A[t-1]);
 }
 return 0;
}

posted on 2011-04-29 22:24  more think, more gains  阅读(138)  评论(0编辑  收藏  举报

导航