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:帮帮小弟吧。。。这样也能超时?

Posted by cac2003 at 2007-10-07 09:57:08 on Problem 3421
In Reply To:帮帮小弟吧。。。这样也能超时? Posted by:hanjialong at 2007-10-06 15:29:12
给你一个建议,质数分解时只用分解到sqrt(n)就可以了,然后用一个数组存放1到20的阶乘,就避免了大量的除法和乘法运算了

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