Cod sursa(job #3213061)
| Utilizator | Data | 12 martie 2024 14:01:08 | |
|---|---|---|---|
| Problema | Restante | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.51 kb |
#include <iostream>
#include <fstream>
#include <map>
#include <algorithm>
using namespace std;
ifstream in("restante.in");
ofstream out("restante.out");
map <string, int> cuv;
int main()
{
int n;
string aux = "";
in >> n;
for (int i=1; i<=n; ++i){
in >> aux;
sort (aux.begin(), aux.end());
cuv[aux]++;
}
long long ans = 0;
for (auto item:cuv){
if (item.second == 1)
ans++;
}
out << ans;
return 0;
}
