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

要读清题目,题目只说C是long范围之内的,而没说n*(n-1)*...*(n-m+1)还有m*(m-1)*...*2也是long范围之内的。

Posted by tbaitm at 2005-09-13 13:56:53 on Problem 1306
不难知道:C=n*(n-1)*...*(n-m+1) / m*(m-1)*...*2;

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