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

Re:当k>n/2的时候取k=n-k

Posted by wrong123 at 2006-01-12 00:04:53 on Problem 2249
In Reply To:当k>n/2的时候取k=n-k Posted by:frkstyc at 2005-04-24 12:12:20
嗯,这个要注意,不然它给出 k = n-1 的情况就挂了。

另外计算过程的临时变量使用 __int64, 就不会在计算中溢出了。

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