56112023-08-08 14:25:55TomaSajtVetélkedő (75 pont)cpp17Accepted 75/7534ms11760 KiB
#include <bits/stdc++.h>
using namespace std;

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

  int n;
  cin >> n;

  set<string> teams;

  while (n--) {
    string s;
    cin >> s;

    sort(s.begin(), s.end());

    if (teams.count(s))
      teams.erase(s);
    else
      teams.insert(s);
  }

  cout << *teams.begin();
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1824 KiB
2Accepted0/034ms3192 KiB
3Accepted5/53ms3292 KiB
4Accepted5/53ms3508 KiB
5Accepted5/52ms3608 KiB
6Accepted5/52ms3724 KiB
7Accepted5/53ms3820 KiB
8Accepted5/53ms4104 KiB
9Accepted5/53ms4196 KiB
10Accepted5/517ms4940 KiB
11Accepted5/521ms5784 KiB
12Accepted5/525ms6592 KiB
13Accepted5/527ms7320 KiB
14Accepted5/529ms8288 KiB
15Accepted5/534ms9540 KiB
16Accepted5/534ms10572 KiB
17Accepted5/530ms11760 KiB