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 |
这两段一样的吧,但为什么1WA 1 A 呢???十分不解。。b是int ,以下输出结果的两段代码不一样吗? printf("%.2lf\n",double(b)/1000.0); (WA) 看了网上代码要这样的: (AC) int tt=b%10; if(tt>=5)b+=10-tt; else b-=tt; printf("%.2lf\n",double(b)/1000.0); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator