/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 492.0 KiB
#2 Accepted 48ms 1.285 MiB
#3 Accepted 51ms 1.285 MiB
#4 Accepted 60ms 1.293 MiB
#5 Accepted 56ms 1.289 MiB
#6 Accepted 58ms 1.289 MiB

Code

#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
int main()
{
    ll n;
    cin>>n;
   vector<ll>v(n);
    ll mx=0;
    for(int i=0;i<n;i++)
    {
        cin>>v[i];
        mx=(mx^v[i]);
    }
    cout<<mx<<endl;
}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-04 16:22:43
Judged At
2024-11-11 02:42:36
Judged By
Score
100
Total Time
60ms
Peak Memory
1.293 MiB