はまやんはまやんはまやん

hamayanhamayan's blog

XOR [yukicoder No.581]

https://yukicoder.me/problems/no/581

解法

https://yukicoder.me/submissions/212256

A^B=C
A^B^A=C^A
B^A^A=C^A
B=C^A
より、AとCのxorを取れば答え

typedef long long ll;
ll A, C;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> A >> C;
    ll B = A ^ C;
    cout << B << endl;
}