Accepted
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-12-17 11:36:45
- Judged By
- Score
- 100
- Total Time
- 30ms
- Peak Memory
- 3.547 MiB