Accepted
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