feat(cpp): add thtbangc2025_bai1

This commit is contained in:
tiennm99 committed 2025-11-29 00:09:55 +07:00
1 parent 3d5610fdb9
commit 5e6b2719c7
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
map<string, int> count;
for (int i = 0; i < 2 * N - 1; ++i) {
string s;
cin >> s;
count[s]++;
}
for (auto &p: count) {
if (p.second % 2 == 1) {
cout << p.first << "\n";
break;
}
}
return 0;
}