Please enter your email address or userHandle.
A number N is given. We need to print its ‘K’th Least Significant Bit.
Input : num = 10, k = 4
Output : 1
Explanation : Binary Representation
of 10 is 1010. 4th LSB is 1.
First line consists of T test cases. Single line input, two integers N and K.
Single line output, print the required output.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.