Description整数の末尾 K ビット整数 n ともう一つの整数 k が与えられています。n を 2 進数で表したときの末尾の k ビットを求めて出力することが課題です。入力最初の行に整数 n (1 ≤ n ≤ ) を 1 つ入力します。次の行に整数 k (0 ≤ k ≤ 30) を 1 つ入力します。出力n を 2 進数で表した際の末尾 k ビットに相当する整数を出力します。Examples入力出力100401003100000000011ConstraintsTime limit: 1.6 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continueSign in to your accountSign in with GoogleSign in with FacebookSign in with MicrosoftSign in with emailBy continuing, you agree to our Terms of Service and Privacy Policy.