+ 2
Challange :identify the minimum number of bits required to represent a number?
ex: input:5 output :3 input 4 output:3
4 odpowiedzi
+ 12
+ 10
JavaScript:
alert((prompt("") - 0).toString(2).length);
+ 1
And Python:
print(int(input()).bit_length())
:^)