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

windbells写的数据试过了?他后面7-9开头的是错的

Posted by frkstyc at 2005-05-27 15:40:52 on Problem 2085
In Reply To:这里就保证了吧? Posted by:TN at 2005-05-27 15:39:25
>             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