70872023-12-30 10:09:00MagyarKendeSZLGVetélkedő (75 pont)cpp17Accepted 75/7535ms13464 KiB
#include <bits/stdc++.h>

#define speed cin.tie(0); ios::sync_with_stdio(0)
#define cinv(v) for (auto& e : v) cin >> e;
#define all(v) v.begin(), v.end()
#define has(s, e) s.count(e)

using namespace std;
using ll = long long;
using point = array<int, 2>;

int main() {
    speed;

    int N;
    cin >> N;
    unordered_map<string, int> teamS;
    while (N--) {
        string s;
        cin >> s;
        sort(all(s));
        teamS[s]++;
    }
    
    for (auto [id, db] : teamS) {
        if (db & 1) {
            cout << id;
            exit(0);
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1828 KiB
2Accepted0/035ms5556 KiB
3Accepted5/53ms3148 KiB
4Accepted5/53ms3284 KiB
5Accepted5/53ms3260 KiB
6Accepted5/53ms3392 KiB
7Accepted5/53ms3496 KiB
8Accepted5/53ms3780 KiB
9Accepted5/53ms4052 KiB
10Accepted5/518ms5632 KiB
11Accepted5/521ms6780 KiB
12Accepted5/526ms7840 KiB
13Accepted5/528ms8868 KiB
14Accepted5/532ms9976 KiB
15Accepted5/535ms11468 KiB
16Accepted5/535ms12776 KiB
17Accepted5/532ms13464 KiB