Accepted
Code
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int x;
int result = 0;
for (int i = 0; i < N; i++) {
cin >> x;
result ^= x;
}
cout << result << "\n";
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1095 B. Uncovering the Lone Heart
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-07-28 18:29:07
- Judged At
- 2025-07-28 18:29:07
- Judged By
- Score
- 100
- Total Time
- 58ms
- Peak Memory
- 544.0 KiB