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

the code shows below:

Posted by ziliang at 2006-11-23 12:00:43 on Problem 2661
In Reply To:请问各位大大,如何计算log2(n)呀? Posted by:acmfjk at 2006-11-23 11:37:08
#include<cmath>

int main(){
  int n=whatever..;

  double answer=log(n)/log(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