#include #include #include #include #include #include #include using namespace std; typedef long long ll; ll N; int K; ll A[100]; void solve(){ ll a, b; cin >> a >> b; vector ans; if(a == b){ cout << 0 << endl; cout << endl; return; } ll m = (a^b)&b; ll x = 0; for(int i = 60; i >= 0; i--){ if(m&((ll)1<= 0; i--){ if(b&((ll)1<> t; for(int i = 0; i < t; i++) solve(); }