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:Orz,k>n/2的时候k=n-k就0ms,不加这个就TLE...

Posted by 19881005 at 2008-09-02 19:57:23 on Problem 2249
In Reply To:Orz,k>n/2的时候k=n-k就0ms,不加这个就TLE... Posted by:chqch172443 at 2008-07-21 19:57:37
我也是TLE,看了你的提示才过的,  当K>N/2时,按我的程序循环的次数就应该变了.
原理其实是C M N==C N M   不好意思排列组合那个符号打不出来

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