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 411465294 at 2007-06-17 22:17:23 on Problem 2590
In Reply To:给个公式 可能有用 0MS算法 Posted by:i_love_c at 2007-02-23 08:00:49
t = (int)sqrt(x);
result = 2 *t -1 ; 
x -= t *t ;
if(x - > t ) result += 2 ;
els if(x >0 ) result += 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