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 |
A 32-bit signed integer can happily deal with the given data range : ]In Reply To:物理课上着上着就想到错哪儿了,别这么低级了啊!!!位运算看不懂的话就看我这个吧。。。 Posted by:ltj_njust at 2010-11-02 12:53:52 The worst case for the number of factor 2 of a given big number in this problem would be: 2^31/2 + 2^30/2 + 2^29/2 + ... + 2^2/2 + 2^1/2 = 2^30 + 2^29 + 2^28 + ... + 2^1 + 2^0 = 2^31 - 1 A 32-bit signed integer could happily hold this. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator