这篇博客是从旧博客 WordPress 迁移过来,内容可能存在转换异常。
题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=2071
很少能看见比这题还水的了。
// Author: Tanky Woo
// HDOJ 2071
#include
#include
#include
using namespace std;
int main()
{
int nCases;
scanf("%d", &nCases;);
while(nCases--)
{
int nNum;
scanf("%d", &nNum;);
double _max = 0.0, temp;
for(int i=0; i _max)
_max = temp;
}
printf("%.2lf\n", _max);
}
return 0;
}