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

表示有一步好难理解啊

Posted by cigaring at 2010-10-29 21:02:34 on Problem 2115
__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:
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