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 |
两个坑点:一是计算中要用分为单位用int变量计算;二是输出的时候要保留两位小数精度两个坑点: 1. 计算中要用分为单位用int变量计算 2. 输出的时候要保留两位小数精度,例如这样就可以AC ans0 = thecanada/100; ans1 = thecanada%100; printf("%d.%02d\n",ans0,ans1); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator