C++ :
#include <bits/stdc++.h> using namespace std; int main(){ long long n,k; cin >> n >> k; cout<< (n & (1<<k)); return 0; }
By signing up a 大飞信奥 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 大飞信奥 universal account