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 |
我晕...难度用double不是这样做的? 但是double的精度不行..连sample3都过不了啊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