Cod sursa(job #2182209)
| Utilizator | Data | 22 martie 2018 11:04:30 | |
|---|---|---|---|
| Problema | Restante | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.48 kb |
#include <fstream>
#include <map>
#include <algorithm>
using namespace std;
ifstream cin("restante.in");
ofstream cout("restante.out");
map <string,int> mapp;
string v[36005];
int main()
{
int n,i,j,cnt=0;
cin>>n;
string x;
for(i=1;i<=n;i++)
{
cin>>x;
sort(x.begin(),x.end());
mapp[x]++;
v[i]=x;
}
for(i=1;i<=n;i++)
{
if(mapp[v[i]]==1)
cnt++;
}
cout<<cnt;
return 0;
}
