1 solutions

  • 0
    @ 2026-11-15 12:45:04

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
        int n,ans = 0;
        cin >> n;
        while(n--){
            int x;
            cin >> x;
            ans ^= x;
        }
        cout << ans;
        return 0;
    }
    
    • 1

    Information

    ID
    191
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By