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 ,用long不行? Posted by:queyue2004 at 2005-07-28 21:02:09 long time; double temp->n; h = 8.0 * (temp->n) - (1.0 * time - temp->time) / 12.0; h = temp->n * 2.0 - (1.0 * time - temp->time) * (1.0 * time - temp->time) / 79.0; if (h > 0) { sum += h; } else { delete node; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator