题目分析:找出最小的值c使(a^c)&(b^c)最大。 代码: #include <stdio.h> #include <algorithm> using namespace std; int main(){ long long a, b; int t; scanf("%d", &t); while(t--){ scanf("%lld%lld", &a, &b); if((a&b)==0) printf("%lld\n", min(a, b)); else printf...