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 |
Re:那位大牛能解释这个问题,俩个非常相似的程序,一个ac(0ms),一个tle!!!In Reply To:Re:那位大牛能解释这个问题,俩个非常相似的程序,一个ac(0ms),一个tle!!! Posted by:lironghua at 2008-04-19 11:14:17 估计是在做除法运算是都要将整型数转化为double类型来做,这样的话,很多时间就浪费在类型的转化上了,结果当然就超时了,我一开始也是这样用所谓的unsigned int类型,结果tle,由此得出结论,以后只要涉及到除法运算的程序都用double类型,省点时间。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator