标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 16818 Accepted Submission(s): 10381
1 #include<stdio.h> 2 int main() 3 { 4 int n,a,i,j; 5 double s[101],max; 6 scanf("%d",&n); 7 while(n--) 8 { 9 scanf("%d",&a); 10 for(i=0;i<a;i++) 11 scanf("%lf",&s[i]); 12 max=s[0]; 13 for(i=1;i<a;i++) 14 max=max>s[i]?max:s[i]; 15 printf("%.2lf\n",max); 16 } 17 return 0; 18 }
标签:
原文地址:http://www.cnblogs.com/Eric-keke/p/4671756.html