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:这么简单的题怎么问题这么多啊?吓死我了

Posted by 504512803 at 2012-02-05 12:59:24 on Problem 2782
In Reply To:Re:这么简单的题怎么问题这么多啊?吓死我了 Posted by:504512803 at 2012-02-05 12:55:17
 INT GETBIN(INT *A,INT R,INT L)//我调用了一个函数  
{

   IF(R<L)RETURN 0;
   IF(A[R]+A[L]<=L)RETURN 1+GETBIN(A,INT R-1,L+1);
   ELSE RETURN 1+GETBIN(A,R-1,L);
}
//这个贪心为什么WA啊   请神牛指教!

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