题解 | 【模板】位运算Ⅰ ‖ 整体与、或、异或
【模板】位运算Ⅰ ‖ 整体与、或、异或
https://www.nowcoder.com/practice/cf1aea70e6e646b48b1c5fd2705c624e?channelPut=tracker3
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int x,y;
cin>>x>>y;
cout<<(x|y)<<" "<<(x&y)<<" "<<(x^y)<<endl;
}
return 0;
}


