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 |
表示有一步好难理解啊__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