/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 26ms 3.375 MiB
#3 Accepted 27ms 3.52 MiB
#4 Accepted 27ms 3.566 MiB
#5 Accepted 43ms 3.441 MiB
#6 Accepted 27ms 3.43 MiB

Code

/* Solved by Sakhawat Hossain Mahin, CSE-28th, SMUCT */
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
#define fastIO ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);

int32_t main()
{
    fastIO

    int n;
    cin>>n;
    map<int,int>mp;

    for(int i = 0; i<n; i++){
        int x;
        cin>>x;
        mp[x]++;
    }   

    for(auto i : mp){
        if(i.second == 1){
            cout << i.first << endl;
            break;
        }
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-04 12:24:53
Judged At
2024-10-04 12:24:53
Judged By
Score
100
Total Time
43ms
Peak Memory
3.566 MiB