mirror of
https://github.com/tiennm99/claoj.git
synced 2026-10-11 03:13:12 +00:00
feat(cpp): add thtbangc2025_bai1
This commit is contained in:
1 parent
3d5610fdb9
commit
5e6b2719c7
1 file changed
+25
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user