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 |
最好的办法还是不偷懒In Reply To:我晕...难度用double不是这样做的? 但是double的精度不行..连sample3都过不了啊 Posted by:qywyh_scut at 2006-05-05 15:25:00 > > > i = 2; > t = 1; > ans = 0.0; > while (i < strlen(a)) > { > ans += double(a[i] - 48) / (pow(8.0, double(t))); > i++; > t++; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator