這題必須用到二進位,不然會超時
T=int(input())for _ in range(T): N,S=map(int,input().split()) I = S & -S print(I.bit_length())