#include using namespace std; #define int long long signed main(){ int Q; cin>>Q; for(int i=0;i>n>>k; if(k==1){ cout<0){ //cout<<"#"<