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了的代码,关键部分换成了内嵌汇编,为什么总是TLE呢?

Posted by 8606 at 2008-11-08 22:49:13 on Problem 3604
In Reply To:AC了的代码,关键部分换成了内嵌汇编,为什么总是TLE呢? Posted by:mmx at 2008-10-18 13:47:53
我将你的汇编段翻译回C源码如下:
while(n%prime[i] == 0){
    j++;
}

问题大概是因为翻译成汇编时的错误,少翻了n/=prime[i]吧^^

就算只想除一次,也犯不着连结果的商都不要吧^^

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