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:有谁知道怎样让他不CE

Posted by 19881005 at 2009-08-28 18:13:59 on Problem 3368
In Reply To:有谁知道怎样让他不CE Posted by:songxuehui at 2009-08-27 03:08:26
int k=(int)(log(n)/log(2));<=> 	int k = 0;
	                    while( 2^k <= n+1 )
		            k++;
	                    k--;

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