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

一个函数就AC

Posted by Hammer307 at 2009-05-16 22:49:55 on Problem 1306
__int64 f(int n,int k)
{
	__int64 y=1;
	for(int i=n-k+1,j=2;i<=n;i++){
		y*=i;
		while(y%j==0&&j<=k){
			y=y/j;
			j++;
		}
	}
	return y;
}

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