Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:那位大牛能解释这个问题,俩个非常相似的程序,一个ac(0ms),一个tle!!!

Posted by lironghua at 2008-04-19 11:17:23 on Problem 1942
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator