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 |
1. div 0 or %0!; 2.overflow,maybe!In Reply To:Re:为什么被判为Runtime Error呢 Posted by:gogo_ccnu at 2004-08-31 19:23:28 a> prime test: i use Fermat thm and x^2==1(mod p) <==> x==1,p-1 (which can detected Carmichael Numbers); b> Fator big int: i use Wheel Factorization! but if all test data are number N (N=p*q,p,q is prime) you can pass it by div reverse from N^0.5! my team members tell me that you can first div frome 0 to 1/3*N^0.5(which can make sure N=p*q) then div from N^0.5 reverse! the QS(or MPQS) was easy to understand but hard to programming! anyone who write it out can you post your problem out!! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator