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:n!计算的一些优化

Posted by gemenhao at 2006-06-29 17:20:49 on Problem 1061
In Reply To:Re:n!计算的一些优化 Posted by:butterfly at 2006-06-29 16:57:47
vc6.0居然不支持 unsigend __int64 -> double 转换,比较恼火,
在我的AMD3200 64位机器上用__int64比用32位计算快,毕竟少了
3/4的乘法运算量,其实最快方法是
质因数分解,然后计算累计计算,300ms 可计算出123456!
去下载一个http://www.freewebs.com/maths/
测试一下就知道有多块!

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