/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 328.0 KiB
#2 Accepted 53ms 536.0 KiB
#3 Accepted 53ms 532.0 KiB
#4 Accepted 52ms 536.0 KiB
#5 Accepted 53ms 532.0 KiB
#6 Accepted 56ms 540.0 KiB

Code

//sol 5369666174
#include<bits/stdc++.h>
using namespace std;

#define mxx 200005
#define ll long long
#define answ ((out)?"YES":"NO")
#define endl '\n'


void solve(int tc){
    int n;
    cin>>n;
    int out=0,a;
    for(int i=0;i<n;i++){
        cin>>a;
        out^=a;
    }
    cout<<out<<endl;
}


void sub_run(){
    #ifndef ONLINE_JUDGE
    freopen("inp.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    #endif // ONLINE_JUDGE
}
 
int main(){
    //ios_base::sync_with_stdio(false);
    //cin.tie(NULL);
 
    int t=1;
    // sub_run();
    // cin>>t;
    for(int i=1;i<=t;i++)solve(i);
}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Contest
Brain Booster #6
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-03 15:36:19
Judged At
2024-12-17 11:36:37
Judged By
Score
100
Total Time
56ms
Peak Memory
540.0 KiB