95672024-02-23 10:23:22Pbg4444Vetélkedő (75 pont)cpp17Accepted 75/7593ms25576 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);

    int n;
    cin>>n;
    vector<string> v(n);
    multiset<string> m;
    string t;
    for(int i=0; i<n; i++){
        cin>>t;
        sort(t.begin(), t.end());
        v[i] = t;
        m.insert(t);
    }

    for(int i=0; i<n; i++){
        if(m.count(v[i]) % 2 == 1){
            cout<<v[i]<<"\n";
            return 0;
        }
    }

   

}

SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1824 KiB
2Accepted0/090ms23928 KiB
3Accepted5/53ms2268 KiB
4Accepted5/53ms2360 KiB
5Accepted5/53ms2568 KiB
6Accepted5/53ms2800 KiB
7Accepted5/53ms3376 KiB
8Accepted5/54ms3448 KiB
9Accepted5/54ms3748 KiB
10Accepted5/546ms14360 KiB
11Accepted5/554ms16780 KiB
12Accepted5/564ms18940 KiB
13Accepted5/576ms21140 KiB
14Accepted5/582ms23104 KiB
15Accepted5/593ms25576 KiB
16Accepted5/590ms25436 KiB
17Accepted5/579ms23764 KiB