Accepted
Code
#include <stdio.h>
#include <map>
int main() {
int n;
scanf("%d", &n);
std::map<int, int> a;
for (int x; n--;) scanf("%d", &x), ++a[x];
for (auto [x, y] : a) {
if (y == 1) {
printf("%d", x);
return 0;
}
}
}
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 16:10:58
- Judged At
- 2024-12-17 11:35:17
- Judged By
- Score
- 100
- Total Time
- 43ms
- Peak Memory
- 2.82 MiB