Cod sursa(job #3222059)
Utilizator | Data | 8 aprilie 2024 22:50:06 | |
---|---|---|---|
Problema | Restante | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.41 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("restante.in");
ofstream fout ("restante.out");
map<map<char ,int>, int>mp;
int n;
string s;
signed main() {
fin >> n;
for (int i = 1; i <= n; i++){
fin >> s;
map<char, int>fr;
for (auto it:s)
fr[it]++;
mp[fr]++;
if (mp[fr] == 2)
mp.erase(fr);
}
fout << mp.size();
return 0;
}