| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
the code shows below: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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator