Skip to content

Commit

Permalink
Add 23275.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye committed Aug 20, 2024
1 parent ea39954 commit 062c6b2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 23xxx/23275.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <iostream>
#include <unordered_set>
using namespace std;

void solve(void) {
int n; cin >> n;
unordered_set<int> s;
for (int i=0; i<n; i++) {
int x; cin >> x;
s.insert(x);
}

for (int i=1; i<n; i++) {
int x; cin >> x;
s.erase(x);
}
cout << *s.begin();
}

int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);

solve();
return 0;
}

0 comments on commit 062c6b2

Please sign in to comment.