1 solutions

  • 0
    @ 2024-10-04 00:06:30
    #include <bits/stdc++.h>
    using namespace std;
    #define SC               scanf
    #define PF               printf
    #define ull              unsigned long long
    #define ld               long double
    #define F                first
    #define S                second
    #define pb               push_back
    #define sort_a(a)        sort(a.begin(),a.end());
    #define sort_d(a)        sort(a.rbegin(),a.rend());
    #define READ(f)          freopen(f, "r", stdin)
    #define WRITE(f)         freopen(f, "w", stdout)
    #define rev(s)           reverse(s.begin(),s.end())
    #define P(ok)            cout << (ok ? "YES\n": "NO\n")
    #define __Heart__              ios_base :: sync_with_stdio(false); cin.tie(NULL);
    #define ll long long
    typedef pair< ll , ll>                   PII;
    void solve()
    {
       ll n , a , Ans = 0 ; cin >> n ;
       while(n--){
        cin >> a ;
        Ans ^= a ;
       }
       cout << Ans ;
    }
    int main()
    {
         __Heart__
         int t ; t = 1 ; while(t--) solve() ;
    }
    
    
  • 1

Information

ID
1095
Difficulty
1
Category
Beginners Click to Show
Tags
# Submissions
119
Accepted
102
Accepted Ratio
86%
Uploaded By