| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
为什么(float)去掉就ac呢if(m%2==0)
{
printf("%.1f\n",(float)a[m/2]/2.0+(float)a[m/2-1]/2.0);
}
else
{
printf("%.1f\n",(float)a[m/2]);
}
return 0;
}
这样就wa;
if(m%2==0)
{
printf("%.1f\n",a[m/2]/2.0+a[m/2-1]/2.0);
}
else
{
printf("%.1f\n",(float)a[m/2]);
}
return 0;
}
这样就ac;
疑惑啊
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator