| ||||||||||
| 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 | |||||||||
BT题目卡精度无语啊无语 WA的可以看一下WA的童鞋可以参考一下这个输出
printf("%.2lf\n",(double)prey / 100.0);
会WA
写成
int fp = prey/100;
int bp = prey%100;
printf("%d.%02d\n",fp,bp);
就好了
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator