1 條題解

  • 0
    @ 2023-8-2 18:03:40

    Sol

    规律题,答案是 x^y 。

    Code

    #include<bits/stdc++.h>  
    #define int long long  
    using namespace std;  
    signed main(){  
        int T;  
        cin>>T;  
        while(T--){  
            int x,y;  
            cin>>x>>y;  
            cout<<(x xor y)<<"\n";  
        }  
        return 0;  
    }  
    

    資訊

    ID
    725
    時間
    1000ms
    記憶體
    256MiB
    難度
    2
    标签
    (無)
    遞交數
    48
    已通過
    15
    上傳者