/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 16ms 3.359 MiB
#3 Accepted 35ms 3.336 MiB
#4 Accepted 20ms 3.359 MiB
#5 Accepted 40ms 3.359 MiB
#6 Accepted 16ms 3.359 MiB

Code

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define fast ios::sync_with_stdio(false);
#define db(x) cout << #x << " = " << x << '\n';




int main(){
    fast
    cin.tie();
    cout.tie();
    
    
    ll a,c,b,d,k,n,x,t,i,q,j,w,m,l,r,z,sum,mn,mx,co,ce;
    char ch;
    // cin>>w;
    
    // while(w--){
        unordered_map<ll,ll>mp;
        cin>>a;
        vector<ll>v(a);
        for(auto &p:v){
            cin>>p;
            mp[p]++;
        }
        for(auto p:mp){
            if(p.second==1){
                cout<<p.first;break;
            }
        }
        
       
        cout<<'\n';
    // }
    
}     



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:35:09
Judged At
2024-10-03 15:35:09
Judged By
Score
100
Total Time
40ms
Peak Memory
3.359 MiB