45632023-03-29 20:59:59MatematikaVetélkedő (75 pont)cpp17Accepted 75/7581ms9460 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<string> vec(n+1);
    for(int i=0; i<n; i++)
    {
        cin >> vec[i];
    }
    vec[n]="~";
    for(int i=0; i<n; i++)
    {
        sort(vec[i].begin(), vec[i].end());
    }
    sort(vec.begin(), vec.end());
    for(int i=0; i<n+1; i=i+2)
    {
        if(vec[i]!=vec[i+1])
        {
            cout << vec[i] << " ";
            break;
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1808 KiB
2Accepted0/081ms8216 KiB
3Accepted5/53ms2216 KiB
4Accepted5/53ms2428 KiB
5Accepted5/53ms2944 KiB
6Accepted5/53ms2960 KiB
7Accepted5/53ms3000 KiB
8Accepted5/53ms3052 KiB
9Accepted5/53ms2992 KiB
10Accepted5/541ms6112 KiB
11Accepted5/548ms6704 KiB
12Accepted5/557ms7232 KiB
13Accepted5/564ms8112 KiB
14Accepted5/571ms8628 KiB
15Accepted5/579ms9448 KiB
16Accepted5/579ms9460 KiB
17Accepted5/572ms9280 KiB