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:帮帮小弟吧。。。这样也能超时?In Reply To:帮帮小弟吧。。。这样也能超时? Posted by:hanjialong at 2007-10-06 15:29:12 给你一个建议,质数分解时只用分解到sqrt(n)就可以了,然后用一个数组存放1到20的阶乘,就避免了大量的除法和乘法运算了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator