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

这里就保证了吧?

Posted by TN at 2005-05-27 15:39:25 on Problem 2085
In Reply To:能阿 Posted by:TN at 2005-05-27 15:38:56
            ans[i]=max(1,m-(n-i)*(n-i-1)/2+1);
            m-=ans[i]-1;

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