← 返回 meta 的题目列表Binary Representation of 128-bit Number
类型:online_judge
Given a 128-bit integer, output the length of the longest sequence of consecutive 1s in its binary representation. For example, for the input 2^128 - 1, the output should be 128, as it is 128 consecutive 1s.
Example
Input
2**128 - 1