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 ghx at 2011-03-22 16:10:07 on Problem 1019
In Reply To:是一个配方题 Posted by:custqi at 2011-02-26 08:31:37
>    n<=i(i+1)/2 ->> 2*n+1/4<=(i+1/2)^2  ->> sqrt(2*n+1/4)<=i+1/2 ->> 
>    a = sqrt(2*n+1/4)-1/2<=i;
>       if a==floor(sqrt(2*n+1/4)-1/2) ->> ans = a;
>       else ans = n - i*(i+1)/2 {i=floor(sqrt(2*n+1/4)-1/2)}

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