#P9986. [Ynoi2079] r2pspc
[Ynoi2079] r2pspc
Problem Description
Given a sequence and queries, each query asks for the number of bits in the binary representation of .
Input Format
The first line contains two integers .
The second line contains integers .
The next lines each contain , representing one query.
Output Format
Output lines. Each line is the answer to the corresponding query.
5 2
2 3 1 2 32
2 5
2 5
4
4
Hint
Idea: rushcheyo, Solution: djq_cpp&ccz181078, Code: ccz181078, Data: ccz181078.
Constraints: For of the testdata, , , , .
For of the testdata, .
For another of the testdata, .
For another of the testdata, .
For the remaining of the testdata, there are no special constraints.
Translated by ChatGPT 5