Cod sursa(job #2693614)
| Utilizator | Data | 6 ianuarie 2021 15:50:07 | |
|---|---|---|---|
| Problema | Restante | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.53 kb |
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double db;
ifstream fin("restante.in");
ofstream fout("restante.out");
int t, rez;
unordered_map<string, int> mep;
int main()
{
ios::sync_with_stdio(false);
fin.tie(0);
fin >> t;
while (t--)
{
string s;
fin >> s;
sort(s.begin(), s.end());
++mep[s];
}
unordered_map<string, int> :: iterator it = mep.begin();
for (; it != mep.end(); ++it)
if ((*it).second == 1)
++rez;
fout << rez;
return 0;
}
