mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
CF1421A XORwice
R40360103
This commit is contained in:
parent
f91f4de358
commit
07eb0d6a28
13
problem/CF1421A/CF1421A.cpp
Normal file
13
problem/CF1421A/CF1421A.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int t, a, b;
|
||||
cin >> t;
|
||||
while(t--) {
|
||||
cin >> a >> b;
|
||||
cout << a + b - (a & b) * 2 << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user