/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 536.0 KiB
#2 Accepted 30ms 3.496 MiB
#3 Accepted 30ms 3.508 MiB
#4 Accepted 30ms 3.395 MiB
#5 Accepted 30ms 3.379 MiB
#6 Accepted 29ms 3.395 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-11-11 02:42:57
Judged By
Score
100
Total Time
30ms
Peak Memory
3.508 MiB