| ||||||||||
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:cigaring at 2010-10-29 21:02:34 > __int64 MLE(__int64 a,__int64 b,__int64 n) > { > __int64 x,y,x0; > __int64 d=Extended_Euclid(a,n,x,y); > if(b%d) > return -1; > > x0=x*(b/d)%n+n; > return x0%(n/d); > > > } > > > x0=x*(b/d)%n+n; > return x0%(n/d); > 就是这一步,不能严格证明,有点晕 算法导论上有详细证明。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator